diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 7044bb66..0af3e81c 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -13,19 +13,19 @@ on: release: types: [published] workflow_dispatch: - workflow: "*" jobs: deploy: runs-on: ubuntu-latest + environment: release permissions: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' @@ -41,7 +41,7 @@ jobs: - name: Publish package to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - repository_url: https://test.pypi.org/legacy/ + repository-url: https://test.pypi.org/legacy/ - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1