diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index b2d65b0..8efa1ab 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -64,7 +64,7 @@ jobs: - name: Archive code coverage results uses: actions/upload-artifact@v3 with: - name: coverage-${{ matrix.package }}-${{ matrix.python-version }} + name: coverage-${{ matrix.platform }}-${{ matrix.python-version }} path: reports/.coverage upload-coverage: 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