Skip to content

Commit

Permalink
Update Python publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ragnorc committed Nov 2, 2024
1 parent a98b0e1 commit d5e70ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Python package

on:
push:
branches: [ master ]
branches: [master]
release:
types: [created]

Expand All @@ -14,12 +14,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Poetry
run: pip install poetry
python-version: "3.9"
- name: Install uv
run: pip install uv
- name: Build and publish to PyPI
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry build
poetry publish --username __token__ --password $PYPI_API_TOKEN
uv build --no-sources
uv publish --token $PYPI_API_TOKEN

0 comments on commit d5e70ed

Please sign in to comment.