diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 58462f5..8277591 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,6 +37,7 @@ jobs: git config user.email "github-actions@github.com" git tag v${{ env.VERSION }} git push origin v${{ env.VERSION }} + echo "::set-output name=create_release::true" fi - name: "web-ext build" @@ -56,7 +57,8 @@ jobs: release: runs-on: ubuntu-latest needs: build # Ensure the build job completes first - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + if: ${{ needs.build.outputs.create_release == 'true' }} + #if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') #if: startsWith(github.ref, 'refs/tags/v') steps: - name: "Checkout"