diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 3b19fac..b622f25 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -67,7 +67,7 @@ jobs: out/latest.yml if-no-files-found: error - name: Publish GitHub release - if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.ver.outputs.released == 'false') + if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') && steps.ver.outputs.released == 'false') uses: softprops/action-gh-release@v2 with: tag_name: v${{ steps.ver.outputs.version }}