fork/helix

git clone https://git.julia.blue/fork/helix

Viktor SzépeFix typos (#12690)e22bbf54

25.07.1
948 B41 linesraw
1name: GitHub Pages
2
3on:
4  push:
5    branches:
6      - master
7    tags:
8      - '*'
9
10jobs:
11  deploy:
12    runs-on: ubuntu-latest
13    steps:
14      - uses: actions/checkout@v4
15
16      - name: Setup mdBook
17        uses: peaceiris/actions-mdbook@v2
18        with:
19          # mdbook-version: 'latest'
20          mdbook-version: '0.4.43'
21
22      - run: mdbook build book
23      
24      - name: Set output directory
25        run: |
26          OUTDIR=$(basename ${{ github.ref }})
27          echo "OUTDIR=$OUTDIR" >> $GITHUB_ENV
28
29      - name: Deploy stable
30        uses: peaceiris/actions-gh-pages@v4
31        if: startswith(github.ref, 'refs/tags/')
32        with:
33          github_token: ${{ secrets.GITHUB_TOKEN }}
34          publish_dir: ./book/book
35
36      - name: Deploy
37        uses: peaceiris/actions-gh-pages@v4
38        with:
39          github_token: ${{ secrets.GITHUB_TOKEN }}
40          publish_dir: ./book/book
41          destination_dir: ./${{ env.OUTDIR }}