Skip to content

Commit

Permalink
feat(🆕): Add GitHub Actions workflow for Wails build
Browse files Browse the repository at this point in the history
  • Loading branch information
iHunterDev committed Jun 14, 2024
1 parent 76015f9 commit df9a09f
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Wails Build
on:
push:
branches:
- main
jobs:
build_windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Copilot for Windows
uses: dAppServer/[email protected]
with:
build-name: jianyingpro-batch-keyframe-copilot
build-platform: windows/amd64
package: false
nsis: true
- name: show tree
run: ls -R
- name: upload artifact
uses: actions/upload-artifact@v4
with:
path: ./build/bin/*.exe
name: windows

build_macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Copilot for macOS
uses: dAppServer/[email protected]
with:
build-name: jianyingpro-batch-keyframe-copilot
build-platform: darwin/amd64
package: false
codesign: false
- name: upload artifact
uses: actions/upload-artifact@v4
with:
path: ./build/bin/*.app.zip
name: macos
upload:
needs: [build_windows, build_macos]
runs-on: ubuntu-latest
steps:
- name: download artifact
uses: actions/[email protected]
- name: show tree
run: ls -R
- name: Upload Windows Copilot
uses: ckylinmc/[email protected]
with:
source: ./windows/jianyingpro-batch-keyframe-copilot-amd64-installer.exe
bucketname: ${{ secrets.BUCKET }}
dest: /jianyingpro-batch-keyframe-copilot/windows/jianyingpro-batch-keyframe-copilot-amd64-installer.exe
accesskey: ${{ secrets.ACCESSKEY }}
secretkey: ${{ secrets.SECRETKEY }}
endpoint: ${{ secrets.ENDPOINT }}
- name: Upload MacOS Copilot
uses: ckylinmc/[email protected]
with:
source: ./macos/jianyingpro-batch-keyframe-copilot.app.zip
bucketname: ${{ secrets.BUCKET }}
dest: /jianyingpro-batch-keyframe-copilot/macos/jianyingpro-batch-keyframe-copilot.app.zip
accesskey: ${{ secrets.ACCESSKEY }}
secretkey: ${{ secrets.SECRETKEY }}
endpoint: ${{ secrets.ENDPOINT }}

0 comments on commit df9a09f

Please sign in to comment.