File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,37 +196,6 @@ jobs:
196196 name : Test (with race condition detector)
197197 run : go test -v -race ./...
198198
199- # A Github release is created whenever the git reference contains a tag, starting with 'v*' (e.g. v0.4.2)
200- # And the previous build jobs have been successful
201- create_release :
202- runs-on : ubuntu-22.04
203- needs : [build_linux, build_macos, test_linux, test_macos]
204- if : startsWith(github.ref, 'refs/tags/v')
205- steps :
206- -
207- name : Create Release
208- id : create_release
209- uses : actions/create-release@v1.0.0
210- env :
211- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
212- with :
213- tag_name : ${{ github.ref }}
214- release_name : Release ${{ github.ref }}
215- draft : true
216- prerelease : false
217- -
218- # since jobs can not share any variables we have to copy the URL of the created Github release
219- # into a file and stash it as an artifact
220- name : Copy release URL into file
221- run : |
222- mkdir release
223- printf "%s" "${{ steps.create_release.outputs.upload_url }}" > release/url.txt
224- - name : Stash file containing the release URL as an artifact
225- uses : actions/upload-artifact@v1
226- with :
227- name : release-url
228- path : ./release
229-
230199# In this job we upload the release artifacts to the corresponding release
231200 create_release_and_upload :
232201 runs-on : ubuntu-24.04
You can’t perform that action at this time.
0 commit comments