Skip to content
Merged
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
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This requires you to have a secret PYPI_TOKEN saved in your github environment
# Publishes to PyPI via trusted publishing (OIDC); no PYPI_TOKEN secret needed.
# Requires a trusted publisher on PyPI for this repo + publish.yml.

name: Publish to PyPi

Expand All @@ -8,7 +9,10 @@ on:

jobs:
publish:
runs-on: blacksmith-2vcpu-ubuntu-2404
runs-on: ubuntu-latest # GitHub-hosted: supported env for pypa/gh-action-pypi-publish
permissions:
id-token: write # Required for PyPI trusted publishing
contents: read
steps:
#----------------------------------------------
# ----- checkout & setup python -----
Expand Down Expand Up @@ -54,9 +58,10 @@ jobs:
#------------------------------
# ----- publish to pypi -----
#------------------------------
- name: build & publish
run: |
poetry publish --build --username __token__ --password=${{ secrets.PYPI_TOKEN }}
- name: build
run: poetry build
- name: publish
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
#----------------------------------------------
# ----- mark SDK as released in Sideko -----
#----------------------------------------------
Expand Down
Loading