git

My personal website source code
Log | Files | Refs | Submodules | README | LICENSE

commit 17da5e8586f040c0c0d797c532ad1bf7faeec0e4
parent b748a664fe44d19740dc970d40fbcf6ea686f283
Author: Luís Ferreira <[email protected]>
Date:   Mon,  3 Jan 2022 02:00:56 +0000

github: workflows: use github.event_name to detect production builds

Signed-off-by: Luís Ferreira <[email protected]>

Diffstat:
M.github/workflows/build.yml | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-latest container: alpine:3.14.2 needs: hugo - if: github.ref == 'refs/heads/master' + if: github.event_name != 'pull_request' steps: - name: Download the build artifact uses: actions/download-artifact@v2 @@ -79,7 +79,7 @@ jobs: runs-on: ubuntu-latest container: alpine:3.14.2 needs: hugo - if: github.ref == 'refs/heads/master' + if: github.event_name != 'pull_request' steps: - name: Download the build artifact uses: actions/download-artifact@v2 @@ -111,7 +111,7 @@ jobs: runs-on: ubuntu-latest container: alpine:3.14.2 needs: hugo - if: github.ref == 'refs/heads/master' + if: github.event_name != 'pull_request' outputs: cid: ${{ steps.web3.outputs.cid }} steps: @@ -131,7 +131,7 @@ jobs: runs-on: ubuntu-latest container: alpine:3.14.2 needs: web3-storage - if: github.ref == 'refs/heads/master' + if: github.event_name != 'pull_request' steps: - name: Install dependencies run: |