Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: publish

on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/aztec-py

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Build package
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 2 additions & 0 deletions PRODUCTION_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Use this checklist before shipping a new `aztec-py` version to production.
- [ ] Confirm `README.md` examples still execute.
- [ ] Verify version metadata in `pyproject.toml`.
- [ ] Build artifacts from clean working tree.
- [ ] PyPI Trusted Publisher is configured for `.github/workflows/publish.yml` (environment: `pypi`).
- [ ] Tag/version alignment checked before publish (`vX.Y.Z` matches `pyproject.toml`).

## 5. Post-Release Smoke Checks

Expand Down
Loading