Skip to content

Commit

Permalink
更新构建脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
auqhjjqdo committed Oct 3, 2023
1 parent bbc7f1a commit 0022e03
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,32 @@ jobs:
pip3 install .
- name: Pyinstaller build
run: pyinstaller build.spec --distpath .
run: |
pyinstaller build.spec
cp config.sample.json dist/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: LiveRecorder_${{ runner.os }}_${{ github.ref_name }}
path: |
config.sample.json
LiveRecorder*
dist/
- name: Create archive
if: startsWith(github.ref_name, 'v')
uses: thedoctor0/zip-release@main
with:
filename: LiveRecorder_${{ runner.os }}_${{ github.ref_name }}.zip
directory: dist/
path: |
config.sample.json
LiveRecorder*
config.sample.json
- name: Release
if: startsWith(github.ref_name, 'v')
uses: softprops/action-gh-release@v1
uses: ncipollo/release-action@v1
with:
files: ./LiveRecorder*.zip
artifacts: dist/LiveRecorder*.zip
allowUpdates: true
draft: true
generateReleaseNotes: true

0 comments on commit 0022e03

Please sign in to comment.