Skip to content

Commit f2f8fec

Browse files
reworking test-pypi uploader
1 parent f6fb649 commit f2f8fec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test_pypi_release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
2+
# Trusted Publisher stuff: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
23

34
name: TEST Publish 📦 to TestPyPI
45

@@ -10,6 +11,11 @@ jobs:
1011
build-n-publish:
1112
name: TEST Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
1213
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi-test
16+
url: https://test.pypi.org/project/SoftLayer/
17+
permissions:
18+
id-token: write
1319
steps:
1420
- uses: actions/checkout@master
1521
- name: Set up Python 3.11
@@ -31,7 +37,7 @@ jobs:
3137
--outdir dist/
3238
.
3339
- name: Publish 📦 to Test PyPI
34-
uses: pypa/gh-action-pypi-publish@master
40+
uses: pypa/gh-action-pypi-publish@release/v1
3541
with:
3642
password: ${{ secrets.CGALLO_TEST_PYPI }}
3743
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)