Only deploy site during linux run of CI build

type: development
This commit is contained in:
Casey Rodarmor 2020-03-21 14:37:46 -07:00
parent b6cb3d389c
commit b27ecf1c09
No known key found for this signature in database
GPG Key ID: 556186B153EC6FE0

View File

@ -74,11 +74,11 @@ jobs:
- name: Build Book
run: mdbook build book --dest-dir ../www/book
- name: Record Git Revision
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' && matrix.os != 'ubuntu-latest'
run: git rev-parse --verify HEAD > www/head.txt
- name: Deploy Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' && matrix.os != 'ubuntu-latest'
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_branch: gh-pages