Fix condition in GHA workflow

Should deploy only on linux, not on everything but linux :P

type: distribution
This commit is contained in:
Casey Rodarmor 2020-03-21 15:11:57 -07:00
parent b27ecf1c09
commit 4b6191773a
No known key found for this signature in database
GPG Key ID: 556186B153EC6FE0

View File

@ -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