-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 911 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build and Release Executable
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12.2' # 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
- name: upload release
uses: ncipollo/release-action@v1
with:
artifacts: ${{ steps.upload.outputs.artifact }}
tag: ${{ github.ref }}
name: Release ${{ github.ref }}
commit: ${{ github.sha }}
token: ${{ secrets.GITHUB_TOKEN }}