From 06094fc5fce65197c3679a9812eb8ae83cfe5e40 Mon Sep 17 00:00:00 2001 From: onlytheworld <37205103+onlytheworld@users.noreply.github.com> Date: Fri, 29 Nov 2024 17:08:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8F=91=E5=B8=83=20(#80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * change workflow * Update main.yml --- .github/workflows/main.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3aaf354..3507c9c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,6 +2,9 @@ name: Build ALL run-name: Build ALL on: workflow_dispatch: {} + release: + types: [published] + jobs: Build_MacOS: runs-on: macos-15 @@ -139,3 +142,45 @@ jobs: name: arch_build path: build/linux/arch/ + Release: + runs-on: ubuntu-latest + needs: [Build_MacOS, Build_IOS, Build_Android, Build_Windows, Build_Linux] + if: github.event_name == 'release' # 仅在 push 事件时执行 + steps: + - uses: actions/download-artifact@v4 + with: + name: venera.dmg + path: outputs + - uses: actions/download-artifact@v4 + with: + name: app-ios.ipa + path: outputs + - uses: actions/download-artifact@v4 + with: + name: apks + path: outputs + - uses: actions/download-artifact@v4 + with: + name: windows_build + path: outputs + - uses: actions/download-artifact@v4 + with: + name: deb_build + path: outputs + - uses: actions/download-artifact@v4 + with: + name: arch_build + path: outputs + - uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.ref_name }} + files: | + outputs/*.ipa + outputs/*.dmg + outputs/*.apk + outputs/*.zip + outputs/*.exe + outputs/*.deb + outputs/*.zst + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}