From e03ac367af97f41f0d36e7783260ab7a7fb77bab Mon Sep 17 00:00:00 2001 From: geoffwhittington Date: Thu, 20 Apr 2023 18:23:42 -0400 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..1b12087 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Build Windows Executable + +on: + create: + tags: + - v* + branches: + - main + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pyinstaller + + - name: Build executable + run: pyinstaller --name=myapp --onefile --windowed myapp.py + + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: myapp + path: dist/myapp.exe