Skip to content

Commit 563dee4

Browse files
ci: create releases (#101)
1 parent c7f0496 commit 563dee4

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16+
setup_release:
17+
name: Setup Release
18+
outputs:
19+
publish_release: ${{ steps.setup_release.outputs.publish_release }}
20+
release_body: ${{ steps.setup_release.outputs.release_body }}
21+
release_commit: ${{ steps.setup_release.outputs.release_commit }}
22+
release_generate_release_notes: ${{ steps.setup_release.outputs.release_generate_release_notes }}
23+
release_tag: ${{ steps.setup_release.outputs.release_tag }}
24+
release_version: ${{ steps.setup_release.outputs.release_version }}
25+
permissions:
26+
contents: write
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
32+
- name: Setup Release
33+
id: setup_release
34+
uses: LizardByte/actions/actions/release_setup@70bb8d394d1c92f6113aeec6ae9cc959a5763d15 # v2026.227.200013
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
1638
build:
1739
name: Build (${{ matrix.os }} - ${{ matrix.appindicator || 'default' }})
1840
defaults:
@@ -278,3 +300,31 @@ jobs:
278300
report_type: test_results
279301
token: ${{ secrets.CODECOV_TOKEN }}
280302
verbose: true
303+
304+
release:
305+
name: Release
306+
if:
307+
always() &&
308+
needs.setup_release.outputs.publish_release == 'true' &&
309+
needs.build.result == 'success' &&
310+
startsWith(github.repository, 'LizardByte/')
311+
needs:
312+
- build
313+
- setup_release
314+
permissions:
315+
contents: read
316+
runs-on: ubuntu-latest
317+
steps:
318+
- name: Create/Update GitHub Release
319+
if: needs.setup_release.outputs.publish_release == 'true'
320+
uses: LizardByte/actions/actions/release_create@70bb8d394d1c92f6113aeec6ae9cc959a5763d15 # v2026.227.200013
321+
with:
322+
allowUpdates: false
323+
artifacts: ''
324+
body: ${{ needs.setup_release.outputs.release_body }}
325+
draft: true
326+
generateReleaseNotes: ${{ needs.setup_release.outputs.release_generate_release_notes }}
327+
name: ${{ needs.setup_release.outputs.release_tag }}
328+
prerelease: true
329+
tag: ${{ needs.setup_release.outputs.release_tag }}
330+
token: ${{ secrets.GH_BOT_TOKEN }}

0 commit comments

Comments
 (0)