From e0fa1f3efedbc3477e32a6cfb5aaf126b821439a Mon Sep 17 00:00:00 2001 From: wonfen Date: Sat, 1 Mar 2025 08:04:31 +0800 Subject: [PATCH] fix: v2 action file rename --- .github/workflows/alpha.yml | 6 +++--- .github/workflows/release.yml | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 8f6f3b2e..d2add9cf 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -203,7 +203,7 @@ jobs: - name: Get Version run: | sudo apt-get update - sudo apt-get install jq + sudo apt-get install jq echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV @@ -293,9 +293,9 @@ jobs: Rename-Item $file.FullName $newName } - $files = Get-ChildItem ".\src-tauri\target\${{ matrix.target }}\release\bundle\nsis\*.nsis.zip.sig" + $files = Get-ChildItem ".\src-tauri\target\${{ matrix.target }}\release\bundle\nsis\*-setup.exe.sig" foreach ($file in $files) { - $newName = $file.Name -replace "-setup\.nsis\.zip\.sig$", "_fixed_webview2-setup.nsis.zip.sig" + $newName = $file.Name -replace "-setup\.exe\.sig$", "_fixed_webview2-setup.exe.sig" Rename-Item $file.FullName $newName } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b1b789e..36c34eca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,10 @@ permissions: write-all env: CARGO_INCREMENTAL: 0 RUST_BACKTRACE: short +concurrency: + # only allow per workflow per commit (and not pr) to run at a time + group: "${{ github.workflow }} - ${{ github.head_ref || github.ref }}" + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: release: @@ -40,6 +44,7 @@ jobs: with: workspaces: src-tauri cache-all-crates: true + cache-on-failure: true - name: Install dependencies (ubuntu only) if: matrix.os == 'ubuntu-22.04' @@ -234,6 +239,8 @@ jobs: uses: Swatinem/rust-cache@v2 with: workspaces: src-tauri + cache-all-crates: true + cache-on-failure: true - name: Install Node uses: actions/setup-node@v4 @@ -283,9 +290,9 @@ jobs: Rename-Item $file.FullName $newName } - $files = Get-ChildItem ".\src-tauri\target\${{ matrix.target }}\release\bundle\nsis\*.nsis.zip.sig" + $files = Get-ChildItem ".\src-tauri\target\${{ matrix.target }}\release\bundle\nsis\*-setup.exe.sig" foreach ($file in $files) { - $newName = $file.Name -replace "-setup\.nsis\.zip\.sig$", "_fixed_webview2-setup.nsis.zip.sig" + $newName = $file.Name -replace "-setup\.exe\.sig$", "_fixed_webview2-setup.exe.sig" Rename-Item $file.FullName $newName }