Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownNPC authored May 3, 2024
1 parent 6193c97 commit 0c8a41d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Executable
name: Build and Release Executable

on:
push:
Expand All @@ -16,18 +16,21 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12.2' # Replace 'x' with your desired Python version
python-version: '3.x' # Replace 'x' with your desired Python version

- name: Install dependencies
run: |
pip install pyinstaller
- name: Build executable
run: |
pyinstaller --onefile --add-data="protontricks/:protontricks/" --add-data="Injector.exe:." pg3d-injector.py
pyinstaller --onefile --add-data="protontricks/:protontricks/" --add-data="Injector.exe:." main.py
- name: Upload artifact
uses: actions/upload-artifact@v2
- name: Create Release
uses: ncipollo/release-action@v1
with:
name: executable
path: dist/main # Adjust the path to match your generated executable file
artifacts: "dist/*" # Adjust the path to match your generated executable file
tag: ${{ github.ref }}
name: Release ${{ github.ref }}
commit: ${{ github.sha }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0c8a41d

Please sign in to comment.