File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -161,3 +161,30 @@ jobs:
161161 git add --force postalkit/libs/
162162 git commit -m "chore: populate prebuilt binaries in libs/ directory [skip ci]" || echo "No changes to commit"
163163 git push origin main
164+
165+ publish-to-pypi :
166+ name : Publish Final Package to PyPI
167+ needs : [upload-release-assets]
168+ runs-on : ubuntu-latest
169+ permissions :
170+ id-token : write
171+ contents : read
172+ steps :
173+ - uses : actions/checkout@v4
174+ with :
175+ ref : main # Pull the latest main with the committed binaries
176+
177+ - name : Set up Python
178+ uses : actions/setup-python@v5
179+ with :
180+ python-version : " 3.10"
181+
182+ - name : Install build tools
183+ run : python -m pip install --upgrade pip build
184+
185+ - name : Build and Publish
186+ run : |
187+ python -m build
188+
189+ - name : Publish package to PyPI
190+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments