Skip to content

Commit ce16c3b

Browse files
committed
Add publish to pypi workflow
1 parent eaf81ab commit ce16c3b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to PyPi
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
name: Build, verify, & upload package to PyPi
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- name: Prepare common Python build environment
15+
uses: ./.github/actions/python-build-env-setup
16+
with:
17+
python-version: "3.13"
18+
19+
- name: Pip cache
20+
uses: actions/cache@v4
21+
with:
22+
path: ~/.cache/pip
23+
key: ${{ runner.os }}-pip
24+
restore-keys: |
25+
${{ runner.os }}-pip
26+
27+
- name: Build, verify, and upload to PyPI
28+
run: |
29+
pip install --upgrade nox
30+
nox -s build publish_pypi
31+
env:
32+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)