Fix condition in GHA workflow
Should deploy only on linux, not on everything but linux :P type: distribution
This commit is contained in:
parent
b27ecf1c09
commit
4b6191773a
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
|
@ -74,11 +74,11 @@ jobs:
|
||||||
- name: Build Book
|
- name: Build Book
|
||||||
run: mdbook build book --dest-dir ../www/book
|
run: mdbook build book --dest-dir ../www/book
|
||||||
- name: Record Git Revision
|
- name: Record Git Revision
|
||||||
if: github.ref == 'refs/heads/master' && matrix.os != 'ubuntu-latest'
|
if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest'
|
||||||
run: git rev-parse --verify HEAD > www/head.txt
|
run: git rev-parse --verify HEAD > www/head.txt
|
||||||
- name: Deploy Pages
|
- name: Deploy Pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
if: github.ref == 'refs/heads/master' && matrix.os != 'ubuntu-latest'
|
if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest'
|
||||||
with:
|
with:
|
||||||
github_token: ${{secrets.GITHUB_TOKEN}}
|
github_token: ${{secrets.GITHUB_TOKEN}}
|
||||||
publish_branch: gh-pages
|
publish_branch: gh-pages
|
||||||
|
|
Loading…
Reference in New Issue
Block a user