Skip to content

Commit

Permalink
feat: 多系统打包
Browse files Browse the repository at this point in the history
  • Loading branch information
mikumifa committed Sep 6, 2024
1 parent 3862df0 commit 80e21db
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ on:
jobs:
build:
name: Build Executables
runs-on: ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os.name }}
strategy:
matrix:
config:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest
- os:
name: ubuntu-latest
filename: Linux
- os:
name: macos-latest
filename: MacOS
- os:
name: windows-latest
filename: Windows
steps:
- name: Checkout source
uses: actions/checkout@v2
Expand Down Expand Up @@ -45,10 +51,10 @@ jobs:
with:
files: dist/
recursive: false
dest: ${{ secrets.ReleaseZipName }}_${{ matrix.config.os }}-${{github.ref_name}}.zip
dest: ${{ secrets.ReleaseZipName }}_${{ matrix.config.os.filename }}-${{github.ref_name}}.zip
- uses: softprops/action-gh-release@v1
with:
files: ${{ secrets.ReleaseZipName }}_${{ matrix.config.os }}-${{github.ref_name}}.zip
files: ${{ secrets.ReleaseZipName }}_${{ matrix.config.os.filename }}-${{github.ref_name}}.zip

# - name: Zip the Build
# run: Compress-Archive -Path ./dist/main/* -DestinationPath ${{ secrets.ReleaseZipName }}_${{ github.ref_name }}.zip
Expand Down

0 comments on commit 80e21db

Please sign in to comment.