diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 223e86d..8a689b3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -38,7 +38,7 @@ jobs: runs-on: ubuntu-20.04 # Doesn't really need the Chrome build, but we can reuse its cache. needs: build_chrome - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') steps: - name: Checkout uses: actions/checkout@v2 @@ -69,9 +69,7 @@ jobs: # Doesn't really need the Chrome build, but we can reuse its cache. needs: build_chrome # Only run on master branch AND if tagging or manually dispatching. - if: | - github.ref == 'refs/heads/master' && - (startsWith(github.ref, 'refs/tags/v') || github.event.inputs.publish_amo_listed == true) + if: startsWith(github.ref, 'refs/tags/v') || github.event.inputs.publish_amo_listed == true steps: - name: Checkout uses: actions/checkout@v2