diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index eabe004..0767949 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -3,7 +3,7 @@ name: Publish to PyPI on: release: types: [published] - workflow_dispatch: # para testar sem criar Release + workflow_dispatch: permissions: contents: read @@ -36,7 +36,9 @@ jobs: publish: runs-on: ubuntu-latest needs: build - + permissions: + id-token: write + steps: - name: Download artifact uses: actions/download-artifact@v4 @@ -48,5 +50,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} - packages-dir: dist/ - + packages-dir: dist/ \ No newline at end of file