Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
Potential necessary change for trusted publishing
  • Loading branch information
KSneijders committed May 25, 2024
1 parent 0e3d6f7 commit 116f602
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/AoE2ScenarioRms/
permissions:
id-token: write
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -41,12 +46,7 @@ jobs:
- name: Publish AoE2ScenarioRms 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/

- name: Publish AoE2ScenarioRms 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 116f602

Please sign in to comment.