v0.1.7-alpha #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflows will create a standalone executable for macOS. | |
name: Create Standalone (macOS) | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: macos-latest-large | |
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: | | |
source .venv/bin/activate | |
pip install pyinstaller | |
pyinstaller start_gui.spec | |
zip osb_gui_macos.zip ./dist/start_gui | |
- 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: /Users/runner/work/open-sync-board-gui/open-sync-board-gui/osb_gui_macos.zip | |
asset_name: osb_gui_macos.zip | |
asset_content_type: application/zip | |