Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Fixing workflow so it builds the latest changes to the latest tag release accordingly
  • Loading branch information
fperdigon authored Feb 5, 2025
1 parent 3e4abb5 commit 75c104c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build PyInstaller Executable

on:
workflow_dispatch: # Allows manual triggering
push:
branches:
- main
Expand Down Expand Up @@ -92,6 +93,7 @@ jobs:
path: dist/

- name: Upload Release Asset
if: github.event_name == 'release' # Only trigger on tagged releases
uses: softprops/action-gh-release@v2
with:
files: |
Expand All @@ -100,6 +102,7 @@ jobs:
dist/AI4Kids-Rock-Paper-Scissors-macos.bin
- name: Upload "Latest" Build
if: github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2
with:
tag_name: latest
Expand Down

0 comments on commit 75c104c

Please sign in to comment.