Skip to content

Commit

Permalink
update workflow files
Browse files Browse the repository at this point in the history
replace pyinstaller.yml with releasebuild.yml to reflect change to on.push.tags
  • Loading branch information
mfaizsyahmi committed Sep 17, 2023
1 parent 4e495b4 commit 374e183
Showing 1 changed file with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Package Application with Pyinstaller
name: PyInstaller Build and Release

on:
push:
branches: [ "main-py" ]
pull_request:
branches: [ "main-py" ]
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0
# branches: [ "main-py" ]
# pull_request:
# branches: [ "main-py" ]

# adapted from https://github.com/pyinstaller/pyinstaller/issues/6296#issuecomment-943620645
jobs:
Expand All @@ -26,10 +29,17 @@ jobs:
pyinstaller src/bsptexremap.spec
# Optionally verify that it works (provided that it does not need user interaction)
# - run: ./dist/your-code/your-code
- uses: actions/upload-artifact@v2
# - uses: actions/upload-artifact@v2
# with:
# path: |
# *.txt
# *.fgd
# dist/*

- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
path: |
files: |
*.txt
*.fgd
dist/*

0 comments on commit 374e183

Please sign in to comment.