-
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (60 loc) · 1.42 KB
/
release_prod.yml
File metadata and controls
67 lines (60 loc) · 1.42 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
66
67
name: release prod
on:
push:
tags:
- 'v*'
jobs:
test:
name: Test (${{ matrix.version }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: |
PYTHON_VERSION=${{ matrix.version }} make test
strategy:
fail-fast: false
matrix:
version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
gen-binary:
name: Gen Binary - Linux - AMD64
runs-on: ubuntu-latest
needs: test
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- run: |
make build
- name: upload artifacts
uses: actions/upload-artifact@v7
with:
name: wheel_dist
path: ./wheel_dist
release:
name: Release
runs-on: ubuntu-latest
needs: gen-binary
steps:
- uses: actions/checkout@v6
- name: Download build artifacts
uses: actions/download-artifact@v8
with:
name: wheel_dist
- run: |
mkdir -p wheel_dist
mv *.whl wheel_dist
sudo pip install twine
./scripts/releasing/release.sh wheel_dist
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_NON_INTERACTIVE: 1
TWINE_USERNAME: __token__