Skip to content

Commit 2329ffb

Browse files
committed
Attach build artifacts to tag releases
1 parent ebc86e3 commit 2329ffb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:
@@ -164,3 +167,24 @@ jobs:
164167
name: ${{ matrix.artifact }}
165168
path: ${{ matrix.artifact }}
166169
if-no-files-found: error
170+
171+
release:
172+
name: Publish Release Assets
173+
if: github.ref_type == 'tag'
174+
needs: build
175+
runs-on: ubuntu-latest
176+
permissions:
177+
contents: write
178+
steps:
179+
- name: Download artifacts
180+
uses: actions/download-artifact@v4
181+
with:
182+
path: dist
183+
184+
- name: Attach assets to release
185+
uses: softprops/action-gh-release@v2
186+
with:
187+
tag_name: ${{ github.ref_name }}
188+
generate_release_notes: true
189+
files: |
190+
dist/**/*.zip

0 commit comments

Comments
 (0)