File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 4444 publish-provider :
4545 runs-on : ubuntu-latest
4646 name : publish-provider
47- env :
48- GORELEASER_CURRENT_TAG : v${{ inputs.version }}
4947 steps :
5048 - name : Checkout Repo
5149 uses : actions/checkout@v3
@@ -89,13 +87,19 @@ jobs:
8987 args :
9088 -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout 60m0s
9189 version : latest
90+ env :
91+ # When building prerelease version, we omit the "v" so must add it for go releaser
92+ GORELEASER_CURRENT_TAG : v${{ inputs.version }}
9293
9394 - name : GoReleaser release
9495 if : " !inputs.prerelease"
9596 uses : goreleaser/goreleaser-action@v4
9697 with :
9798 args : -p 3 release --rm-dist --timeout 60m0s
9899 version : latest
100+ env :
101+ # Currently, when triggering a real release, we use the tag which is already prefixed with "v"
102+ GORELEASER_CURRENT_TAG : ${{ inputs.version }}
99103
100104 - if : failure() && github.event_name == 'push'
101105 name : Notify Slack
You can’t perform that action at this time.
0 commit comments