From 53860119e132b0b28af269667c3aa7e55316a6e7 Mon Sep 17 00:00:00 2001 From: Daniel Crha Date: Tue, 13 Oct 2020 16:31:54 +0200 Subject: [PATCH] Do not run deploy to GitHub Pages for pull requests --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0321954..ee40fc9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,7 @@ jobs: args: docfx.json - name: Deploy to GitHub Pages + if: ${{ github.repository_owner == 'openiddict' && (github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/heads/rel/') || startsWith(github.ref, 'refs/tags/')) }} uses: JamesIves/github-pages-deploy-action@releases/v3 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}