From 897aa1a521eaf78ab9411845154396e189cf09f2 Mon Sep 17 00:00:00 2001 From: Linus_tt <100426634+BrownNPC@users.noreply.github.com> Date: Sun, 5 May 2024 00:42:43 +0500 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..cc0a966 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Compile and Upload Artifact + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + pip install pyinstaller + + - name: Compile code + run: | + pyinstaller --onefile --add-data="protontricks:protontricks" pg3d-injector.py + + - name: Archive artifacts + uses: actions/upload-artifact@v2 + with: + name: compiled-code + path: dist/pg3d-injector +