Skip to content

Commit d1fc986

Browse files
committed
ci: build and release precompiled binaries on tag push (v*)
1 parent 83dbe90 commit d1fc986

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/precompiled-bin-workflow.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Build Precompiled Binaries
22

33
on:
4+
push:
5+
tags:
6+
- 'v*'
47
workflow_dispatch:
58
workflow_call:
69
inputs:
@@ -200,3 +203,33 @@ jobs:
200203
with:
201204
name: lbug_cli-windows-x86_64
202205
path: lbug_cli-windows-x86_64.zip
206+
207+
release:
208+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
209+
needs: build-precompiled-bin
210+
runs-on: ubuntu-latest
211+
permissions:
212+
contents: write
213+
steps:
214+
- name: Download liblbug artifacts
215+
uses: actions/download-artifact@v4
216+
with:
217+
pattern: 'liblbug*'
218+
path: artifacts
219+
merge-multiple: true
220+
run-id: ${{ github.run_id }}
221+
222+
- name: Download lbug_cli artifacts
223+
uses: actions/download-artifact@v4
224+
with:
225+
pattern: 'lbug_cli*'
226+
path: artifacts
227+
merge-multiple: true
228+
run-id: ${{ github.run_id }}
229+
230+
- name: Upload to Release
231+
uses: softprops/action-gh-release@v2
232+
with:
233+
tag_name: ${{ github.ref_name }}
234+
files: artifacts/**/*
235+
make_latest: true

0 commit comments

Comments
 (0)