-
-
Notifications
You must be signed in to change notification settings - Fork 16
65 lines (63 loc) · 2.01 KB
/
deploy_github.yml
File metadata and controls
65 lines (63 loc) · 2.01 KB
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
62
63
64
65
name: Deploy to GitHub Releases
on:
push:
tags:
- '*'
jobs:
build:
name: Create Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.11']
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -e .
- name: Build app for Mac
if: runner.os == 'macOS'
working-directory: ./build-recipes
run: |
bash ./macos_build_app.sh PyCorrFit $(python -m pycorrfit --version)
- name: Build app for Win
if: runner.os == 'windows'
working-directory: ./build-recipes
run: |
pip install -r win_build_requirements.txt
pyinstaller -y --log-level=WARN win_BMicro.spec
.\dist\PyCorrFit\PyCorrFit.exe --version
python win_make_iss.py
iscc /Q win_bmicro.iss
- name: Release macOS assets
if: runner.os == 'macOS'
uses: softprops/action-gh-release@v1
with:
name: PyCorrFit ${{ github.ref_name }}
draft: true
prerelease: false
body: |

files: |
./build-recipes/dist/PyCorrFit_${{ github.ref_name }}_macosx.dmg
./build-recipes/dist/PyCorrFit_${{ github.ref_name }}_macosx.pkg
- name: Release windows assets
if: runner.os == 'windows'
uses: softprops/action-gh-release@v1
with:
name: BMicro ${{ github.ref_name }}
draft: true
prerelease: false
body: |

files: |
./build-recipes/Output/PyCorrFit_${{ github.ref_name }}_win_64bit_setup.exe