-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (58 loc) · 1.8 KB
/
deploy_github.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Deploy to GitHub Releases
on:
push:
tags:
- '*'
env:
PYINSTALLER_COMPILE_BOOTLOADER: 1
jobs:
build:
name: Create Release
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
os: [macos-latest, windows-latest]
timeout-minutes: 30
steps:
- name: Set env
shell: bash
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install .
- name: Build macOS app
if: runner.os == 'macOS'
working-directory: ./build-recipes
run: |
bash ./macos_build_app.sh MPLDataCast ${{ env.RELEASE_VERSION }}
- name: Build windows executable
if: runner.os == 'windows'
working-directory: ./build-recipes
run: |
pip install -r win_build_requirements.txt
pyinstaller -y --log-level=WARN win_MPLDataCast.spec
# Run the binary (the most simple test)
dist\\MPLDataCast\\MPLDataCast.exe --version
python win_make_iss.py
ISCC.exe /Q win_mpl-data-cast.iss
- name: Release Assets
uses: softprops/action-gh-release@v1
with:
name: MPL-Data-Cast ${{ env.RELEASE_VERSION }}
draft: true
prerelease: false
body: |
![](https://img.shields.io/github/downloads/GuckLab/MPL-Data-Cast/${{ env.RELEASE_VERSION }}/total.svg)
files: |
./build-recipes/dist/*.dmg
./build-recipes/dist/*.pkg
./build-recipes/Output/*.exe