Skip to content

Commit 72bc05b

Browse files
reworking test-pypi uploader
1 parent f2f8fec commit 72bc05b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 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/
3+
14
name: Release to PyPi
25

36
on:
@@ -8,6 +11,11 @@ jobs:
811
build-n-publish:
912
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
1013
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi
16+
url: https://pypi.org/project/SoftLayer/
17+
permissions:
18+
id-token: write
1119
steps:
1220
- uses: actions/checkout@master
1321
- name: Set up Python 3.11
@@ -28,10 +36,6 @@ jobs:
2836
--wheel
2937
--outdir dist/
3038
.
31-
- name: Publish 📦 to Test PyPI
39+
- name: 📦 to PyPI
3240
uses: pypa/gh-action-pypi-publish@release/v1
33-
with:
34-
user: __token__
35-
password: ${{ secrets.CGALLO_PYPI }}
36-
repository-url: https://upload.pypi.org/legacy/
3741

.github/workflows/test_pypi_release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,3 @@ jobs:
3838
.
3939
- name: Publish 📦 to Test PyPI
4040
uses: pypa/gh-action-pypi-publish@release/v1
41-
with:
42-
password: ${{ secrets.CGALLO_TEST_PYPI }}
43-
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)