Skip to content

Commit e970ae6

Browse files
authored
Add GitHub Release workflow for tagged pushes
1 parent f9d637d commit e970ae6

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,25 @@ jobs:
4040
with:
4141
name: ${{ matrix.os }}-installer
4242
path: dist/*
43+
44+
release:
45+
name: Create GitHub Release
46+
needs: build # Only runs if both builds finish successfully
47+
if: startsWith(github.ref, 'refs/tags/') # Only runs on tag pushes
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Download all artifacts
51+
uses: actions/download-artifact@v4
52+
with:
53+
path: artifacts
54+
merge-multiple: true
55+
56+
- name: Create Release
57+
uses: softprops/action-gh-release@v2
58+
with:
59+
files: |
60+
artifacts/*.dmg
61+
artifacts/*.deb
62+
body: "Automatic build of ${{ github.ref_name }}"
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)