forked from rust-gamedev/rust-gamedev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rust-gamedev:main' into source
- Loading branch information
Showing
129 changed files
with
4,587 additions
and
1,079 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[*.{md,mkdn}] | ||
trim_trailing_whitespace = false | ||
indent_style = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,14 +10,35 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
BASE_URL: https://github.com/getzola/zola/releases/download | ||
VERS: v0.15.2 | ||
VERS: v0.19.1 | ||
ARCH: x86_64-unknown-linux-gnu | ||
# https://github.com/crazy-max/ghaction-github-pages/issues/1#issuecomment-623202206 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Lint | ||
uses: avto-dev/markdown-lint@v1 | ||
with: | ||
args: '.' | ||
config: '.markdownlint.json' | ||
- name: Install Zola | ||
run: | | ||
curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz | ||
echo "Zola version: $(./zola --version)" | ||
- name: Zola build | ||
run: ./zola build | ||
- name: Upload GitHub Pages artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: public | ||
|
||
links: | ||
name: Check for Broken Links | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} | ||
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} | ||
- name: Get changed files | ||
id: changed-files | ||
# source: https://stackoverflow.com/a/74268200, added filtering for markdown files | ||
|
@@ -29,11 +50,6 @@ jobs: | |
fi | ||
echo "changed_files: $changed_files" | ||
echo "changed_files=$changed_files" >> $GITHUB_OUTPUT | ||
- name: Lint | ||
uses: avto-dev/markdown-lint@v1 | ||
with: | ||
args: '.' | ||
config: '.markdownlint.json' | ||
- name: Check links | ||
uses: lycheeverse/[email protected] | ||
if: ${{ steps.changed-files.outputs.changed_files != '' }} | ||
|
@@ -45,16 +61,23 @@ jobs: | |
--accept '100..=103,200..=299,300..=399' | ||
--exclude '[^\w]todo[^\w]?' | ||
--exclude 'https://(www\.|old\.)?reddit\.com' | ||
--exclude 'https://www.patreon.com' | ||
--exclude 'https://gamedev.social' | ||
--exclude 'dev.epicgames.com' | ||
--exclude-path 'assets/logo/readme.md' | ||
${{ steps.changed-files.outputs.changed_files }} | ||
- name: Install Zola | ||
run: | | ||
curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz | ||
echo "Zola version: $(./zola --version)" | ||
- name: Zola build | ||
run: ./zola build | ||
- name: Deploy | ||
if: github.ref == 'refs/heads/source' | ||
uses: crazy-max/ghaction-github-pages@v1 | ||
with: | ||
build_dir: public | ||
target_branch: master | ||
pages: | ||
needs: zola | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
if: format('refs/heads/{0}', github.event.repository.default_branch) == github.ref | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.