|
16 | 16 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
17 | 17 | steps: |
18 | 18 | - uses: actions/checkout@v4 |
| 19 | + - name: Lint |
| 20 | + uses: avto-dev/markdown-lint@v1 |
| 21 | + with: |
| 22 | + args: '.' |
| 23 | + config: '.markdownlint.json' |
| 24 | + - name: Install Zola |
| 25 | + run: | |
| 26 | + curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz |
| 27 | + echo "Zola version: $(./zola --version)" |
| 28 | + - name: Zola build |
| 29 | + run: ./zola build |
| 30 | + - name: Upload GitHub Pages artifact |
| 31 | + uses: actions/upload-pages-artifact@v3 |
19 | 32 | with: |
20 | | - fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} |
| 33 | + path: public |
| 34 | + |
| 35 | + links: |
| 36 | + name: Check for Broken Links |
| 37 | + runs-on: ubuntu-latest |
| 38 | + steps: |
| 39 | + - uses: actions/checkout@v4 |
| 40 | + with: |
| 41 | + fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} |
21 | 42 | - name: Get changed files |
22 | 43 | id: changed-files |
23 | 44 | # source: https://stackoverflow.com/a/74268200, added filtering for markdown files |
|
29 | 50 | fi |
30 | 51 | echo "changed_files: $changed_files" |
31 | 52 | echo "changed_files=$changed_files" >> $GITHUB_OUTPUT |
32 | | - - name: Lint |
33 | | - uses: avto-dev/markdown-lint@v1 |
34 | | - with: |
35 | | - args: '.' |
36 | | - config: '.markdownlint.json' |
37 | 53 | - name: Check links |
38 | 54 | uses: lycheeverse/lychee-action@v1.9.0 |
39 | 55 | if: ${{ steps.changed-files.outputs.changed_files != '' }} |
|
50 | 66 | --exclude 'dev.epicgames.com' |
51 | 67 | --exclude-path 'assets/logo/readme.md' |
52 | 68 | ${{ steps.changed-files.outputs.changed_files }} |
53 | | - - name: Install Zola |
54 | | - run: | |
55 | | - curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz |
56 | | - echo "Zola version: $(./zola --version)" |
57 | | - - name: Zola build |
58 | | - run: ./zola build |
59 | | - - name: Upload GitHub Pages artifact |
60 | | - uses: actions/upload-pages-artifact@v3 |
61 | | - with: |
62 | | - path: public |
63 | | - |
| 69 | +
|
64 | 70 | pages: |
65 | 71 | needs: zola |
66 | 72 | permissions: |
|
0 commit comments