release
This commit is contained in:
@@ -203,6 +203,14 @@ jobs:
|
||||
with:
|
||||
name: windows-builds-${{ matrix.arch }}
|
||||
path: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
|
||||
- name: Upload Windows release asset
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
||||
with:
|
||||
files: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
|
||||
tag_name: ${{ github.ref_name }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# ==================== macOS GUI ====================
|
||||
build_macos_gui:
|
||||
@@ -213,7 +221,7 @@ jobs:
|
||||
- platform: darwin/amd64
|
||||
os_name: darwin
|
||||
arch: amd64
|
||||
os: macos-13
|
||||
os: macos-14
|
||||
- platform: darwin/arm64
|
||||
os_name: darwin
|
||||
arch: arm64
|
||||
@@ -265,6 +273,14 @@ jobs:
|
||||
with:
|
||||
name: macos-builds-${{ matrix.arch }}
|
||||
path: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
|
||||
- name: Upload macOS release asset
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
||||
with:
|
||||
files: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
|
||||
tag_name: ${{ github.ref_name }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# ==================== Linux GUI ====================
|
||||
build_linux_gui:
|
||||
@@ -318,21 +334,11 @@ jobs:
|
||||
with:
|
||||
name: linux-builds-${{ matrix.arch }}
|
||||
path: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
|
||||
|
||||
# ==================== GUI Release 上传 ====================
|
||||
upload_gui_release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build_windows_gui, build_macos_gui, build_linux_gui]
|
||||
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
||||
steps:
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: release-assets
|
||||
- name: Upload release assets
|
||||
- name: Upload Linux release asset
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
||||
with:
|
||||
files: release-assets/**/*.zip
|
||||
files: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
|
||||
tag_name: ${{ github.ref_name }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user