Skip to content

Commit 0afeb63

Browse files
author
jayeshmepani
committed
fix: merge pypi publish into release workflow to ensure binaries are present
1 parent a175c3a commit 0afeb63

2 files changed

Lines changed: 27 additions & 59 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/release-prebuilt-libs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)