forked from PrincetonUniversity/PsyNeuLinkView
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 916 Bytes
/
installers.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
name: Installers
on:
release:
types:
- created
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.12.7
- name: Install dependencies
working-directory: ./package/installers
run: pip install -r requirements.txt pyinstaller
- name: Build
working-directory: ./package/installers
run: pyinstaller --onefile installer.py
- name: Rename the installer with the OS name
working-directory: ./package/installers
run: mv dist/installer dist/installer-${{ matrix.os }}
- name: release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./package/installers/dist/installer-${{ matrix.os }}