updated github actions workflow

This commit is contained in:
Vomitblood 2024-08-07 16:12:20 +08:00
parent fa00220612
commit 0edef1236b

View file

@ -39,3 +39,30 @@ jobs:
- name: Build Tauri
run: mise exec bun --command 'bun run tauri build'
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: stort-appimage.zip
path: ./src-tauri/target/release/bundle/appimage/*.AppImage
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
release_name: ${{ env.TAG_NAME }}
draft: false
prerelease: false
- name: Upload whatsip artifact to release (Windows)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./src-tauri/target/release/bundle/appimage/*.AppImage
asset_name: stort-appimage.zip
asset_content_type: application/octet-stream