Update workflow

pull/55/head v0.10.2
neobooru 2023-09-08 19:07:55 +02:00
parent 237fe88f1c
commit 7a296c1729
1 changed files with 2 additions and 4 deletions

View File

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