Skip to content

v0.1.7-alpha

v0.1.7-alpha #26

Workflow file for this run

# This workflows will create a standalone executable for windows.
name: Create Standalone (Windows)
on:
release:
types: [published]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Create executable
run: |
.venv/Scripts/activate
pip install pyinstaller
pyinstaller start_gui.spec
7z a -tzip osb_gui_windows.zip ./dist/start_gui.exe
ls
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: D:\a\open-sync-board-gui\open-sync-board-gui\osb_gui_windows.zip
asset_name: osb_gui_windows.zip
asset_content_type: application/zip