Skip to content

[pre-commit.ci] pre-commit autoupdate (#22) #48

[pre-commit.ci] pre-commit autoupdate (#22)

[pre-commit.ci] pre-commit autoupdate (#22) #48

Workflow file for this run

name: Windows Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build executable
run: |
pyinstaller main.spec
- uses: vimtor/[email protected]
with:
files: dist/main
dest: doge.zip
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Application
path: doge.zip
Release:
if: contains(github.ref, 'refs/tags')
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- name: Display structure of downloaded files
run: ls -R
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
./**/*.zip