Skip to content

Commit 6712b16

Browse files
committed
Use pypi action to publish
1 parent 6e35223 commit 6712b16

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
python -m pip install --upgrade pip
2727
python -m pip install poetry poetry-dynamic-versioning
2828
29-
- name: Setup TESTPYPI repo
30-
run: |
31-
poetry config repositories.testpypi https://test.pypi.org/legacy/
29+
# - name: Setup TESTPYPI repo
30+
# run: |
31+
# poetry config repositories.testpypi https://test.pypi.org/legacy/
3232

3333
- name: Build package
3434
run: |
@@ -37,15 +37,18 @@ jobs:
3737
################################
3838
# TEMPORARY TEST PYPI STEPS #
3939
################################
40-
- name: Mint token for Testpypi
41-
id: mint
42-
uses: tschm/token-mint-action@v1.0.2
40+
# - name: Mint token for Testpypi
41+
# id: mint
42+
# uses: tschm/token-mint-action@v1.0.2
43+
# with:
44+
# audience: testpypi
45+
# - name: Publish the package to Testpypi
46+
# run: |
47+
# poetry publish -r testpypi -u __token__ -p '${{ steps.mint.outputs.api-token }}'
48+
- name: Publish package distributions to TestPyPI
49+
uses: pypa/gh-action-pypi-publish@release/v1
4350
with:
44-
audience: testpypi
45-
- name: Publish the package to Testpypi
46-
run: |
47-
poetry publish -r testpypi -u __token__ -p '${{ steps.mint.outputs.api-token }}'
48-
51+
repository-url: https://test.pypi.org/legacy/
4952
#####################################
5053
# DISABLE TEST STEPS AND UNCOMMENT #
5154
# THE FOLLOWING STEPS WHEN READY #

0 commit comments

Comments
 (0)