From b322627609857c71d7071820cbdea85b3f9a328a Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Mon, 6 May 2024 15:30:00 +0800 Subject: [PATCH] ci: fix ci script --- .github/workflows/alpha.yml | 24 ++++++++++++++++++++++-- .github/workflows/release.yml | 28 ++++++++++++++++++++++++---- 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index aebad13..4c3998c 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -117,7 +117,7 @@ jobs: - name: Upload Release if: startsWith(matrix.target, 'x86_64') - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: alpha name: "Clash Verge Rev Alpha" @@ -211,7 +211,27 @@ jobs: body: "More new features are now supported." prerelease: true token: ${{ secrets.GITHUB_TOKEN }} - files: src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*setup* + files: src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*setup.exe + + - name: Upload Release + uses: softprops/action-gh-release@v2 + with: + tag_name: alpha + name: "Clash Verge Rev Alpha" + body: "More new features are now supported." + prerelease: true + token: ${{ secrets.GITHUB_TOKEN }} + files: src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*setup.nsis.zip + + - name: Upload Release + uses: softprops/action-gh-release@v2 + with: + tag_name: alpha + name: "Clash Verge Rev Alpha" + body: "More new features are now supported." + prerelease: true + token: ${{ secrets.GITHUB_TOKEN }} + files: src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*setup.nsis.zip.sig update_tag: name: Update tag diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9851528..fe77259 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -113,7 +113,7 @@ jobs: - name: Upload Release if: startsWith(matrix.target, 'x86_64') - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: v${{env.VERSION}} name: "Clash Verge Rev v${{env.VERSION}}" @@ -122,7 +122,7 @@ jobs: files: src-tauri/target/${{ matrix.target }}/release/bundle/appimage/*.AppImage* - name: Upload Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: v${{env.VERSION}} name: "Clash Verge Rev v${{env.VERSION}}" @@ -198,13 +198,33 @@ jobs: Rename-Item '.\src-tauri\target\${{ matrix.target }}\release\bundle\nsis\Clash Verge_${{steps.build.outputs.appVersion}}_${{ matrix.arch }}-setup.nsis.zip.sig' 'Clash Verge_${{steps.build.outputs.appVersion}}_${{ matrix.arch }}_fixed_webview2-setup.nsis.zip.sig' - name: Upload Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: v${{steps.build.outputs.appVersion}} name: "Clash Verge Rev v${{steps.build.outputs.appVersion}}" body: "More new features are now supported." token: ${{ secrets.GITHUB_TOKEN }} - files: src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*setup* + files: src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*setup.exe + + - name: Upload Release + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{steps.build.outputs.appVersion}} + name: "Clash Verge Rev v${{steps.build.outputs.appVersion}}" + body: "More new features are now supported." + prerelease: true + token: ${{ secrets.GITHUB_TOKEN }} + files: src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*setup.nsis.zip + + - name: Upload Release + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{steps.build.outputs.appVersion}} + name: "Clash Verge Rev v${{steps.build.outputs.appVersion}}" + body: "More new features are now supported." + prerelease: true + token: ${{ secrets.GITHUB_TOKEN }} + files: src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*setup.nsis.zip.sig release-update: runs-on: ubuntu-latest