Skip to content

Commit c3b3cef

Browse files
committed
ci: add release workflow
1 parent 389dab2 commit c3b3cef

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
on:
44
push:
55
branches: [ "master", "develop" ]
6+
tags: [ '*' ]
67

78
jobs:
89
build_tsab:
@@ -99,3 +100,32 @@ jobs:
99100
with:
100101
name: ts3audiobot-${{ matrix.rid }}
101102
path: publish
103+
104+
release:
105+
needs: [ publish ]
106+
runs-on: ubuntu-latest
107+
if: startsWith(github.ref, 'refs/tags/')
108+
109+
steps:
110+
- uses: actions/download-artifact@v4
111+
with:
112+
name: ts3audiobot-linux-x64
113+
- uses: actions/download-artifact@v4
114+
with:
115+
name: ts3audiobot-linux-arm
116+
- uses: actions/download-artifact@v4
117+
with:
118+
name: ts3audiobot-linux-arm64
119+
- uses: actions/download-artifact@v4
120+
with:
121+
name: ts3audiobot-win-x64
122+
123+
- name: Release
124+
uses: softprops/action-gh-release@v2
125+
if: github.ref_type == 'tag'
126+
with:
127+
files: |
128+
ts3audiobot-win-x64.zip
129+
ts3audiobot-linux-arm64.zip
130+
ts3audiobot-linux-arm.zip
131+
ts3audiobot-linux-x64.zip

.github/workflows/release.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)