Skip to content

Commit

Permalink
Fix release pipeline (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
corydolphin authored Feb 24, 2025
1 parent ade65a1 commit 01e2e68
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/on-release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: pyproject-toml
path: pyproject.toml
path: |
pyproject.toml
flask_cors/version.py
publish:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # this permission is mandatory for trusted publishing
needs: [set-version]
steps:
- name: Check out
Expand All @@ -44,12 +49,13 @@ jobs:
uses: actions/download-artifact@v4
with:
name: pyproject-toml

- name: Cat files
run: cat pyproject.toml && cat flask_cors/version.py
- name: Build package
run: uv build

- name: Publish package
run: uv publish
run: uv publish --trusted-publishing

deploy-docs:
needs: publish
Expand Down

0 comments on commit 01e2e68

Please sign in to comment.