Skip to content

v0.1.1beta

v0.1.1beta #4

name: Build and Release App (Windows)
on:
release:
types: [published] # Trigger on GitHub release
workflow_dispatch: # Manual trigger from GitHub UI
permissions:
contents: write # Required to upload release assets
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build executable with PyInstaller
run: |
pyinstaller SysmacSymbolExport.spec
- name: List build output (debug)
run: dir dist
- name: Upload release asset
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: |
dist/SysmacSymbolExport.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload executable as artifact (for manual trigger)
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: SysmacSymbolExport.exe
path: dist/SysmacSymbolExport.exe