Don't publish to testpypi
All checks were successful
Python package / lint (push) Successful in 11s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 10s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped

This commit is contained in:
Brendan Haines 2024-10-20 23:58:08 -06:00
parent 2668a880ee
commit da2c453430

View File

@ -106,31 +106,31 @@ jobs:
# '${{ github.ref_name }}' dist/** # '${{ github.ref_name }}' dist/**
# --repo '${{ github.repository }}' # --repo '${{ github.repository }}'
publish-to-testpypi: # publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI # name: Publish Python 🐍 distribution 📦 to TestPyPI
needs: # needs:
- build # - build
runs-on: ubuntu-latest # runs-on: ubuntu-latest
environment: # environment:
name: testpypi # name: testpypi
url: https://test.pypi.org/p/goat_monitor # url: https://test.pypi.org/p/goat_monitor
permissions: # permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing # id-token: write # IMPORTANT: mandatory for trusted publishing
env: # env:
RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd # RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd
AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824 # AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824
steps: # steps:
- name: Download all the dists # - name: Download all the dists
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: python-package-distributions # name: python-package-distributions
path: dist/ # path: dist/
- name: Publish distribution 📦 to TestPyPI # - name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1 # uses: pypa/gh-action-pypi-publish@release/v1
with: # with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }} # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/ # repository-url: https://test.pypi.org/legacy/