Skip to content

Commit fe5fa33

Browse files
authored
Merge pull request #45 from UnplugAI/dev
Sync dev: restore PyPI publish
2 parents 6ca98f3 + 9f15436 commit fe5fa33

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

‎.github/workflows/publish-pypi.yml‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish to PyPI
22

33
# Releases run the full CI gate before building.
4-
# Auth: PyPI OIDC Trusted Publishing (no long-lived token). Configure the
5-
# trusted publisher for project "unplug-ai" in the PyPI project settings.
4+
# Auth: GitHub Environment "pypi" secret PYPI_TOKEN (uv publish).
5+
# Optional: configure PyPI Trusted Publishing for OIDC — see PUBLISH.md.
66

77
on:
88
release:
@@ -16,9 +16,6 @@ jobs:
1616
publish:
1717
runs-on: ubuntu-latest
1818
environment: pypi
19-
permissions:
20-
contents: read
21-
id-token: write # required for PyPI OIDC Trusted Publishing
2219
defaults:
2320
run:
2421
working-directory: sdk
@@ -46,6 +43,6 @@ jobs:
4643
run: uv build
4744

4845
- name: Publish unplug-ai
49-
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
50-
with:
51-
packages-dir: sdk/dist
46+
env:
47+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
48+
run: uv publish --check-url https://pypi.org/pypi/unplug-ai/json

0 commit comments

Comments
 (0)