Skip to content

Commit

Permalink
revert trusted publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
szn committed Apr 10, 2024
1 parent 8d05a62 commit d85b9fd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-22.04
environment: pypi
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/confluence.md
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
Expand Down Expand Up @@ -44,6 +44,9 @@ jobs:
with:
skip-existing: true
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 comments on commit d85b9fd

Please sign in to comment.