File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 name : Build (${{ matrix.arch }})
3535 runs-on : ${{ matrix.os }}
3636 permissions :
37- contents : write
37+ contents : read
3838 id-token : write
3939 attestations : write
4040 artifact-metadata : write
@@ -137,15 +137,6 @@ jobs:
137137 mv target/${{ matrix.target }}/release/warpgate dist/warpgate-${{ env.GITHUB_REF_SLUG }}-${{ matrix.arch }}
138138 mv cdx.xml dist/warpgate-${{ env.GITHUB_REF_SLUG }}-${{ matrix.arch }}.cdx.xml
139139
140- - name : Upload release
141- uses : softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda
142- if : startsWith(github.ref, 'refs/tags/v')
143- with :
144- draft : true
145- generate_release_notes : true
146- files : dist/*
147- token : ${{ secrets.GITHUB_TOKEN }}
148-
149140 config-schema :
150141 name : Config schema check
151142 runs-on : ubuntu-24.04
@@ -169,3 +160,32 @@ jobs:
169160 mkdir warpgate-web/dist
170161 just config-schema
171162 git diff --exit-code config-schema.json
163+
164+ publish-release :
165+ name : Publish release
166+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
167+ needs :
168+ - build
169+ - config-schema
170+ runs-on : ubuntu-latest
171+ permissions :
172+ contents : write
173+
174+ steps :
175+ - name : Download release artifacts
176+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
177+ with :
178+ path : dist
179+ pattern : warpgate-*
180+ merge-multiple : true
181+
182+ - name : Publish GitHub release
183+ uses : softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda
184+ with :
185+ tag_name : ${{ github.ref_name }}
186+ name : ${{ github.ref_name }}
187+ draft : false
188+ prerelease : ${{ contains(github.ref_name, '-') }}
189+ generate_release_notes : true
190+ files : dist/*
191+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments