From 14f1659e48e3aa31c00f01f5bd2a933675719212 Mon Sep 17 00:00:00 2001 From: Murillo Bianconi Date: Fri, 18 Oct 2024 14:15:11 -0300 Subject: [PATCH] tenta configurar workflow de release --- .github/workflows/release.yml | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39fccb3..6276665 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - 'v*.*.*' jobs: - publish: + build: runs-on: ubuntu-latest steps: @@ -23,7 +23,27 @@ jobs: - name: "Build" run: uv build - - name: Publish to PyPI - run: uv publish - env: - UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file + - name: "upload dist" + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/ + + release: + runs-on: ubuntu-latest + environment: release + needs: + - build + + permissions: + id-token: write + + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f