Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sharl committed Oct 15, 2024
1 parent 15a8cce commit 5a47655
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yaml]
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: publish executable file to release page
on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
build-and-release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install PyInstaller and dependencies
run: |
python -m pip install --upgrade -r requirements.txt pip PyInstaller

- name: Create executable file with pyinstaller and zip
run: |
pyinstaller ADFmonitor.py --onefile --noconsole
pushd dist
Compress-Archive -Path . -DestinationPath ADFmonitor.zip
popd

- name: Upload a executable file to GitHub Releases
uses: softprops/action-gh-release@v2
with:
files: |
dist/ADFmonitor.zip

0 comments on commit 5a47655

Please sign in to comment.