diff --git a/.github/workflows/publish.yaml b/.github/workflows/release.yaml similarity index 77% rename from .github/workflows/publish.yaml rename to .github/workflows/release.yaml index 540172c..13c43fa 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: publish +name: release on: release: @@ -6,22 +6,21 @@ on: permissions: contents: read + id-token: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: - publish: + pypi: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.x' - name: Build distribution run: pipx run build - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }}