From 0edef1236bfeb06ef0329ca8b807699ca5eaa6d6 Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Wed, 7 Aug 2024 16:12:20 +0800 Subject: [PATCH] updated github actions workflow --- .github/workflows/build-validation.yml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/build-validation.yml b/.github/workflows/build-validation.yml index f3526e2..a137489 100644 --- a/.github/workflows/build-validation.yml +++ b/.github/workflows/build-validation.yml @@ -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