diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8277591..943fbee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,8 +4,8 @@ on: push: branches: - main - tags: - - v* + #tags: + # - v* workflow_dispatch: permissions: @@ -26,6 +26,7 @@ jobs: VERSION=$(jq -r '.version' src/manifest.json) echo "NAME=$NAME" >> $GITHUB_ENV echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "DO_RELEASE='false'" >> $GITHUB_ENV - name: "Create Tag if Version Changed" id: create_tag @@ -38,6 +39,7 @@ jobs: git tag v${{ env.VERSION }} git push origin v${{ env.VERSION }} echo "::set-output name=create_release::true" + echo "DO_RELEASE='true'" >> $GITHUB_ENV fi - name: "web-ext build" @@ -57,7 +59,7 @@ jobs: release: runs-on: ubuntu-latest needs: build # Ensure the build job completes first - if: ${{ needs.build.outputs.create_release == 'true' }} + if: needs.build.outputs.DO_RELEASE == 'true' #if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') #if: startsWith(github.ref, 'refs/tags/v') steps: