diff options
-rw-r--r-- | .github/workflows/website.yml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 3b1d517a1..fa322fb42 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -41,7 +41,7 @@ jobs: run: | ssh-agent -a $SSH_AUTH_SOCK > /dev/null ssh-add - <<< "${{ secrets.WEBSITE_PRIV_KEY }}" - if: env.HAS_SSH_KEY == 'true' + if: github.ref == 'refs/heads/master' && env.HAS_SSH_KEY == 'true' - name: Build website run: | git config --global user.name "github-actions" @@ -56,7 +56,7 @@ jobs: run: | cd docs ninja -C _build upload - if: env.HAS_SSH_KEY == 'true' + if: github.ref == 'refs/heads/master' && env.HAS_SSH_KEY == 'true' - name: Release the current JSON docs uses: svenstaro/upload-release-action@v2 with: @@ -71,4 +71,3 @@ jobs: file: docs/_build/meson-reference.3 tag: ${{ github.ref }} if: ${{ github.event_name == 'release' }} - |