|
15 | 15 | # https://github.com/crazy-max/ghaction-github-pages/issues/1#issuecomment-623202206
|
16 | 16 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
17 | 17 | steps:
|
| 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: Deploy |
| 31 | + if: github.ref == 'refs/heads/source' |
| 32 | + uses: crazy-max/ghaction-github-pages@v1 |
| 33 | + with: |
| 34 | + build_dir: public |
| 35 | + target_branch: master |
| 36 | + |
| 37 | + links: |
| 38 | + name: Links |
| 39 | + runs-on: ubuntu-latest |
| 40 | + steps: |
18 | 41 | - uses: actions/checkout@v4
|
19 | 42 | with:
|
20 |
| - fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} |
| 43 | + fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} |
21 | 44 | - name: Get changed files
|
22 | 45 | id: changed-files
|
23 | 46 | # source: https://stackoverflow.com/a/74268200, added filtering for markdown files
|
|
29 | 52 | fi
|
30 | 53 | echo "changed_files: $changed_files"
|
31 | 54 | 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 | 55 | - name: Check links
|
38 | 56 | uses: lycheeverse/[email protected]
|
39 | 57 | if: ${{ steps.changed-files.outputs.changed_files != '' }}
|
|
48 | 66 | --exclude 'https://www.patreon.com'
|
49 | 67 | --exclude 'https://gamedev.social'
|
50 | 68 | ${{ steps.changed-files.outputs.changed_files }}
|
51 |
| - - name: Install Zola |
52 |
| - run: | |
53 |
| - curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz |
54 |
| - echo "Zola version: $(./zola --version)" |
55 |
| - - name: Zola build |
56 |
| - run: ./zola build |
57 |
| - - name: Deploy |
58 |
| - if: github.ref == 'refs/heads/source' |
59 |
| - uses: crazy-max/ghaction-github-pages@v1 |
60 |
| - with: |
61 |
| - build_dir: public |
62 |
| - target_branch: master |
|
0 commit comments