-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.03 KB
/
build_mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This workflows will create a standalone executable for macOS.
name: Create Standalone (macOS)
on:
release:
types: [published]
jobs:
build:
runs-on: macos-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: |
source .venv/bin/activate
pip install pyinstaller
pyinstaller start_gui.spec
zip esb_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/empkins-sync-board-gui/empkins-sync-board-gui/esb_gui_macos.zip
asset_name: esb_gui_macos.zip
asset_content_type: application/zip