Skip to content

Commit 7a5fe6b

Browse files
author
wenfeng.wf
committed
Add testpypi push.
1 parent 1fc14bb commit 7a5fe6b

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

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

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -93,27 +93,27 @@ jobs:
9393
gh release upload
9494
"$GITHUB_REF_NAME" dist/**
9595
--repo "$GITHUB_REPOSITORY"
96-
#
97-
# publish-to-testpypi:
98-
# name: Publish Python 🐍 distribution 📦 to TestPyPI
99-
# needs:
100-
# - build
101-
# runs-on: ubuntu-latest
102-
#
103-
# environment:
104-
# name: testpypi
105-
# url: https://test.pypi.org/p/alibabacloud-rds-openapi-mcp-server
106-
#
107-
# permissions:
108-
# id-token: write # IMPORTANT: mandatory for trusted publishing
109-
#
110-
# steps:
111-
# - name: Download all the dists
112-
# uses: actions/download-artifact@v4
113-
# with:
114-
# name: python-package-distributions
115-
# path: dist/
116-
# - name: Publish distribution 📦 to TestPyPI
117-
# uses: pypa/gh-action-pypi-publish@release/v1
118-
# with:
119-
# repository-url: https://test.pypi.org/legacy/
96+
97+
publish-to-testpypi:
98+
name: Publish Python 🐍 distribution 📦 to TestPyPI
99+
needs:
100+
- build
101+
runs-on: ubuntu-latest
102+
103+
environment:
104+
name: testpypi
105+
url: https://test.pypi.org/p/alibabacloud-rds-openapi-mcp-server
106+
107+
permissions:
108+
id-token: write # IMPORTANT: mandatory for trusted publishing
109+
110+
steps:
111+
- name: Download all the dists
112+
uses: actions/download-artifact@v4
113+
with:
114+
name: python-package-distributions
115+
path: dist/
116+
- name: Publish distribution 📦 to TestPyPI
117+
uses: pypa/gh-action-pypi-publish@release/v1
118+
with:
119+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)