on master help sign in
CI: Publish stable book before master (#8621)
commitef1f4f31b6e0d8338a9f5b8932de9b07ac7bb0a0 authorMichael Davis <mcarsondavis@gmail.com> dateThu 26 Oct 2023, 09:07 (3 years ago) parent5ce1c30
1 file changed+4−4
.github/workflows/gh-pages.yml+4−4
.github/workflows/gh-pages.yml+4−4
@@ -26,16 +26,16 @@ jobs:
2626 OUTDIR=$(basename ${{ github.ref }})
2727 echo "OUTDIR=$OUTDIR" >> $GITHUB_ENV
2828
29− - name: Deploy
29+ - name: Deploy stable
3030 uses: peaceiris/actions-gh-pages@v3
31+ if: startswith(github.ref, 'refs/tags/')
3132 with:
3233 github_token: ${{ secrets.GITHUB_TOKEN }}
3334 publish_dir: ./book/book
34− destination_dir: ./${{ env.OUTDIR }}
3535
36− - name: Deploy stable
36+ - name: Deploy
3737 uses: peaceiris/actions-gh-pages@v3
38− if: startswith(github.ref, 'refs/tags/')
3938 with:
4039 github_token: ${{ secrets.GITHUB_TOKEN }}
4140 publish_dir: ./book/book
41+ destination_dir: ./${{ env.OUTDIR }}