Skip to content

Commit 9cb0c91

Browse files
committed
[python-conprof] migrate prod pipeline
1 parent f16ee94 commit 9cb0c91

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/workflows/release_prod.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: release prod
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
test:
10+
name: Test (${{ matrix.version }})
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
- run: |
15+
PYTHON_VERSION=${{ matrix.version }} make test
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
version:
20+
- "3.8"
21+
- "3.9"
22+
- "3.10"
23+
- "3.11"
24+
- "3.12"
25+
- "3.13"
26+
27+
gen-binary:
28+
name: Gen Binary - Linux - AMD64
29+
runs-on: ubuntu-latest
30+
needs: test
31+
timeout-minutes: 30
32+
steps:
33+
- uses: actions/checkout@v5
34+
with:
35+
fetch-depth: 0
36+
37+
- name: Set env
38+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
39+
40+
- run: |
41+
make build
42+
43+
- name: upload artifacts
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: wheel_dist
47+
path: |
48+
wheel_dist/*
49+
50+
release:
51+
name: Release
52+
runs-on: ubuntu-latest
53+
needs: gen-binary
54+
steps:
55+
- uses: actions/checkout@v5
56+
- name: Download build artifacts
57+
uses: actions/download-artifact@v4
58+
- run: |
59+
./scripts/release.sh wheel_dist
60+
env:
61+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

.github/workflows/release_staging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
gen-binary:
2828
name: Gen Binary - Linux - AMD64
2929
runs-on: ubuntu-latest
30+
needs: test
3031
timeout-minutes: 30
3132
steps:
3233
- uses: actions/checkout@v5

0 commit comments

Comments
 (0)