Skip to content

Commit 62f5011

Browse files
authored
Merge pull request #5 from greyllmmoder/codex/chore-pypi-trusted-publishing
chore: add PyPI trusted publishing workflow
2 parents c2b9bbc + 8098999 commit 62f5011

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: pypi
17+
url: https://pypi.org/p/aztec-py
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.11"
26+
27+
- name: Build package
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install build
31+
python -m build
32+
33+
- name: Publish to PyPI
34+
uses: pypa/gh-action-pypi-publish@release/v1

PRODUCTION_CHECKLIST.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Use this checklist before shipping a new `aztec-py` version to production.
3232
- [ ] Confirm `README.md` examples still execute.
3333
- [ ] Verify version metadata in `pyproject.toml`.
3434
- [ ] Build artifacts from clean working tree.
35+
- [ ] PyPI Trusted Publisher is configured for `.github/workflows/publish.yml` (environment: `pypi`).
36+
- [ ] Tag/version alignment checked before publish (`vX.Y.Z` matches `pyproject.toml`).
3537

3638
## 5. Post-Release Smoke Checks
3739

0 commit comments

Comments
 (0)