Skip to content

Commit

Permalink
Switch workflow to real PyPI, remove up/down steps
Browse files Browse the repository at this point in the history
Upload/Download artifacts is only necessary when build is happening in a
separate job.
  • Loading branch information
JOJ0 committed Mar 2, 2025
1 parent 7c88b97 commit ea90a4c
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/pypi_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
# needs: ["release"]

environment:
name: testpypi
url: https://test.pypi.org/p/discodos
# name: testpypi
# url: https://test.pypi.org/p/discodos
name: pypi
url: https://pypi.org/p/discodos
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

Expand All @@ -33,17 +35,17 @@ jobs:
run: |
python -m build
twine check dist/*
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Download all the distribution packages
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
# - name: Store the distribution packages
# uses: actions/upload-artifact@v4
# with:
# name: python-package-distributions
# path: dist/
# - name: Download all the distribution packages
# uses: actions/download-artifact@v4
# with:
# name: python-package-distributions
# path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
# with:
# repository-url: https://test.pypi.org/legacy/

0 comments on commit ea90a4c

Please sign in to comment.