-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.23 KB
/
release.yaml
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
---
name: release
on:
release:
types:
- published
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
# Use an older Linux: https://pyinstaller.org/en/stable/usage.html#making-gnu-linux-apps-forward-compatible
- ubuntu-20.04
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
with:
# LFS data is not needed for release
lfs: false
# Tags are needed to compute the current version number
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Enable Corepack
run: |
corepack enable
- name: Install tox
run: |
pip install --upgrade pip
pip install tox
- name: Build binary
run: |
tox -e binary
- name: Zip and upload binary
run: |
.github/zip_and_upload_package.sh ${{ runner.os }} ${{ github.event.release.tag_name }}
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}