Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
drsanwujiang committed Dec 27, 2023
1 parent 4e90091 commit db5228e
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Build Bundle
on:
[push, release]
push:
branches:
- main
release:
types:
- published
jobs:
build:
runs-on: windows-latest
Expand All @@ -26,8 +31,19 @@ jobs:
run: echo version=$(poetry version --short) >> "$GITHUB_OUTPUT"
- name: Build bundle
run: poetry run pyinstaller main.spec
- name: Upload artifact
- name: Upload bundle to artifact
uses: actions/upload-artifact@v4
with:
name: google-cloud-gui_${{ steps.show-version.outputs.version }}
path: dist/google-cloud-gui
path: dist/google-cloud-gui
- name: Create release bundle
if: ${{ github.event_name == 'release' }}
uses: TheDoctor0/[email protected]
with:
filename: google-cloud-gui_${{ steps.show-version.outputs.version }}.zip
path: dist/google-cloud-gui
- name: Upload bundle to release
if: ${{ github.event_name == 'release' }}
uses: svenstaro/upload-release-action@v2
with:
file: google-cloud-gui_${{ steps.show-version.outputs.version }}.zip

0 comments on commit db5228e

Please sign in to comment.