From 0bd37eb8f9e52df0be0e1c7098472949c779b5d1 Mon Sep 17 00:00:00 2001 From: keiko233 Date: Sat, 11 Nov 2023 15:00:54 +0800 Subject: [PATCH] chore: drop upload-artifact & use prerelease --- .github/workflows/dev.yaml | 42 +++++++++++--------------------------- 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 9e59b329..b9121cb7 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -49,8 +49,6 @@ jobs: - name: Tauri build uses: tauri-apps/tauri-action@v0 - # enable cache even though failed - # continue-on-error: true env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} @@ -60,33 +58,17 @@ jobs: releaseName: "Clash Nyanpasu Dev" releaseBody: "More new features are now supported." releaseDraft: false - prerelease: false + prerelease: true args: -f default-meta - - name: Upload artifact (Windows nsis) - if: startsWith(matrix.os, 'windows-') - uses: actions/upload-artifact@v3 - with: - name: nyanpasu-dev-nsis-${{ github.sha }} - path: src-tauri/target/release/bundle/**/*.exe - - - name: Upload artifact (macOS DMG) - if: startsWith(matrix.os, 'macos-') - uses: actions/upload-artifact@v3 - with: - name: nyanpasu-dev-dmg-${{ github.sha }} - path: src-tauri/target/release/bundle/**/*.dmg - - - name: Upload artifact (Ubuntu AppImage) - if: startsWith(matrix.os, 'ubuntu-') - uses: actions/upload-artifact@v3 - with: - name: nyanpasu-dev-appimage-${{ github.sha }} - path: src-tauri/target/release/bundle/**/*.AppImage - - - name: Upload artifact (Ubuntu deb) - if: startsWith(matrix.os, 'ubuntu-') - uses: actions/upload-artifact@v3 - with: - name: nyanpasu-dev-deb-${{ github.sha }} - path: src-tauri/target/release/bundle/**/*.deb + - name: Portable Bundle + if: matrix.os == 'windows-latest' + run: | + yarn build -f default-meta + yarn run portable + env: + TAG_NAME: dev + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} + TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} + VITE_WIN_PORTABLE: 1