Skip to content

Commit 92115d2

Browse files
author
Anaïs Saraiva
committed
Update build.yml
1 parent 7674fd8 commit 92115d2

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,32 @@ jobs:
6363
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6464
run: cargo tauri build ${{ matrix.args }}
6565

66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: tauri-builds-${{ matrix.platform }}
69+
path: |
70+
src-tauri/target/release/bundle/deb/*.deb
71+
src-tauri/target/release/bundle/appimage/*.AppImage
72+
src-tauri/target/release/bundle/msi/*.msi
73+
src-tauri/target/release/bundle/nsis/*.exe
74+
retention-days: 30
75+
6676
- name: create release
6777
uses: softprops/action-gh-release@v1
68-
if: startsWith(github.ref, 'refs/tags/')
6978
with:
79+
tag_name: v${{ github.run_number }}
80+
name: Release v${{ github.run_number }}
81+
body: |
82+
Automated release from commit ${{ github.sha }}
83+
84+
Download the appropriate file for your platform:
85+
- `.deb` for Ubuntu/Debian
86+
- `.AppImage` for generic Linux
87+
- `.msi` for Windows
7088
files: |
7189
src-tauri/target/release/bundle/deb/*.deb
7290
src-tauri/target/release/bundle/appimage/*.AppImage
91+
draft: false
92+
prerelease: false
7393
env:
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)