diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df5f565..214028c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: prepare_release: runs-on: ubuntu-latest needs: build - if: github.ref == 'refs/heads/master' + if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }} steps: - uses: actions/checkout@v2 with: @@ -89,7 +89,7 @@ jobs: release: runs-on: ubuntu-latest needs: prepare_release - if: github.ref == 'refs/heads/master' + if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }} steps: - uses: actions/checkout@v2 with: