Skip to content

Commit

Permalink
tenta configurar workflow de release
Browse files Browse the repository at this point in the history
  • Loading branch information
Murillo Bianconi committed Oct 18, 2024
1 parent 790107d commit 14f1659
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*.*.*'

jobs:
publish:
build:
runs-on: ubuntu-latest

steps:
Expand All @@ -23,7 +23,27 @@ jobs:
- name: "Build"
run: uv build

- name: Publish to PyPI
run: uv publish
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
- 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

0 comments on commit 14f1659

Please sign in to comment.