diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index 02f428c..3930fac 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -6,20 +6,16 @@ on: - "v*" jobs: - deploy: + pypi-publish: + name: upload release to PyPI runs-on: ubuntu-latest + permissions: + # This permission is needed for private repositories. + contents: read + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.x" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install pdm>=2.11.1 - - name: Publish - env: - POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }} - run: | - python -m pdm publish + - uses: actions/checkout@v3 + - uses: pdm-project/setup-pdm@v3 + - name: Publish package distributions to PyPI + run: pdm publish