Skip to content

Commit

Permalink
perf: 优化 actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Oct 17, 2023
1 parent 83e92bd commit 13eb9e2
Show file tree
Hide file tree
Showing 3 changed files with 707 additions and 26 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,28 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '16.20'
- name: Build Application
- name: Install Dependencies
run: |
yarn install
yarn build
mkdir -p release
- name: Build Win x64
run: |
yarn run build:win
mv dist/JumpServer-VideoPlayer-v${{ steps.get_version.outputs.TAG }}.exe release/JumpServer-VideoPlayer-v${{ steps.get_version.outputs.TAG }}-win-x64.exe
- name: Build Win x86
run: |
rm -rf dist/*
yarn run build:win32
mv dist/JumpServer-VideoPlayer-v${{ steps.get_version.outputs.TAG }}.exe release/JumpServer-VideoPlayer-v${{ steps.get_version.outputs.TAG }}-win-x86.exe
- name: Release Upload Assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
build/*.exe
release/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 13eb9e2

Please sign in to comment.