ソースを参照

ci: update alpha script

MystiPanda 1 年間 前
コミット
69adade738
1 ファイル変更30 行追加4 行削除
  1. 30 4
      .github/workflows/alpha.yml

+ 30 - 4
.github/workflows/alpha.yml

@@ -109,6 +109,28 @@ jobs:
           sudo apt-get update
           sudo apt-get install jq
           echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV
+          echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV
+
+      - run: |
+          cat > release.txt << 'EOF'
+          ### 我应该下载哪个版本?
+
+          - Windows x86_64架构: x64-setup.exe (不支持win7)
+          - Windows arm64架构: arm64-setup.exe
+          - MacOS intel芯片: x64.dmg
+          - MacOS apple M芯片: aarch64.dmg (提示文件损坏看下面FAQ)
+          - Linux x64架构: amd64.AppImage/amd64.deb
+          - Linux arm64架构: arm64.deb
+          - Linux armv7架构: armhf.deb
+          - Windows 便携板 x86_64架构: x64_portable.zip (不推荐使用,无法自动更新)
+          - Windows 便携板 arm64架构: arm64_portable.zip (不推荐使用,无法自动更新)
+
+          ### FAQ
+
+          - [https://clash-verge-rev.github.io/faq.html](https://clash-verge-rev.github.io/faq.html)
+
+          Created at  ${{ env.BUILDTIME }}.
+          EOF
 
       - name: Upload Release
         if: startsWith(matrix.target, 'x86_64')
@@ -116,7 +138,7 @@ jobs:
         with:
           tag_name: alpha
           name: "Clash Verge Rev Alpha"
-          body: "More new features are now supported."
+          body_path: release.txt
           prerelease: true
           token: ${{ secrets.GITHUB_TOKEN }}
           files: src-tauri/target/${{ matrix.target }}/release/bundle/appimage/*.AppImage*
@@ -126,7 +148,7 @@ jobs:
         with:
           tag_name: alpha
           name: "Clash Verge Rev Alpha"
-          body: "More new features are now supported."
+          body_path: release.txt
           prerelease: true
           token: ${{ secrets.GITHUB_TOKEN }}
           files: src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
@@ -138,16 +160,19 @@ jobs:
     steps:
       - name: Checkout repository
         uses: actions/checkout@v4
+
       - name: Set Env
         run: |
           echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV
         shell: bash
+
       - name: Update Tag
         uses: richardsimko/update-tag@v1
         with:
           tag_name: alpha
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
       - run: |
           cat > release.txt << 'EOF'
           ### 我应该下载哪个版本?
@@ -159,8 +184,8 @@ jobs:
           - Linux x64架构: amd64.AppImage/amd64.deb
           - Linux arm64架构: arm64.deb
           - Linux armv7架构: armhf.deb
-          - Windows便携板 x86_64架构: x64_portable.zip (不推荐使用,无法自动更新)
-          - MacOS便携板 arm64架构: arm64_portable.zip (不推荐使用,无法自动更新)
+          - Windows 便携板 x86_64架构: x64_portable.zip (不推荐使用,无法自动更新)
+          - Windows 便携板 arm64架构: arm64_portable.zip (不推荐使用,无法自动更新)
 
           ### FAQ
 
@@ -168,6 +193,7 @@ jobs:
 
           Created at  ${{ env.BUILDTIME }}.
           EOF
+
       - name: Upload Release
         uses: softprops/action-gh-release@v1
         with: