Skip to content

Commit 334fd8f

Browse files
committed
ci: split publish workflow into build and release jobs
1 parent 76fc1bc commit 334fd8f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
jobs:
8-
deploy:
8+
build:
99
runs-on: ubuntu-22.04
1010
strategy:
1111
matrix:
@@ -18,7 +18,7 @@ jobs:
1818
urllib3-line: "ge2"
1919
steps:
2020
- uses: actions/checkout@v5
21-
- name: Set up Python
21+
- name: Setup Python
2222
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python }}
@@ -37,6 +37,14 @@ jobs:
3737
pip install -r requirements/test.txt
3838
- name: Run Tox
3939
run: tox -e py
40+
release:
41+
runs-on: ubuntu-22.04
42+
steps:
43+
- uses: actions/checkout@v5
44+
- name: Setup Python
45+
uses: actions/setup-python@v5
46+
with:
47+
python-version: 3.12
4048
- name: Install build dependencies
4149
run: |
4250
pip install setuptools wheel twine

0 commit comments

Comments
 (0)