diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f5088c8..d113862 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,9 +4,6 @@ on: release: types: [ published ] -permissions: - contents: write - jobs: ci: name: CI @@ -14,9 +11,14 @@ jobs: release: name: Release + environment: release needs: [ ci ] runs-on: ubuntu-20.04 + permissions: + contents: write + id-token: write + steps: - name: Download build artifacts uses: actions/download-artifact@v4 @@ -37,5 +39,4 @@ jobs: - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.PYPI_API_TOKEN }} packages-dir: assets/