From 4b6191773aabd445551820ed338c77d907d723c2 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 21 Mar 2020 15:11:57 -0700 Subject: [PATCH] Fix condition in GHA workflow Should deploy only on linux, not on everything but linux :P type: distribution --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b569b20..4f29519 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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' && matrix.os != 'ubuntu-latest' + 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' && matrix.os != 'ubuntu-latest' + if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' with: github_token: ${{secrets.GITHUB_TOKEN}} publish_branch: gh-pages