File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments