-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.23 KB
/
release-builder.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
name: Build releases
on:
push:
tags:
- '*'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact-name: "Linux"
artifact-suffix: ""
- os: windows-latest
artifact-name: "Windows"
artifact-suffix: ".exe"
- os: macos-latest
artifact-name: "MacOS"
artifact-suffix: ""
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Set up the environment
run: |
python -m pip install --upgrade pip
pip install pytest pyinstaller
pip install .
pytest
python src/genescape/exe.py --build
- name: Extract package version
shell: bash
run: echo "VERSION=$(python -c 'from genescape import __version__; print(__version__)')" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: GeneScape-${{ env.VERSION }}-${{ matrix.artifact-name }}
path: dist/GeneScape-${{ env.VERSION }}-${{ matrix.artifact-name }}.zip