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