Skip to content

Commit

Permalink
use uv for release
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeGehring committed Jan 5, 2025
1 parent c1e2d70 commit 1f895c9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
python-version: '3.x'
- name: Generate Changelog
run: grep -B 9999 "##" -m2 CHANGELOG.md | head -n -1 | tail -n +4 > ${{ github.workspace }}-CHANGELOG.txt
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
pip install toml-cli
- name: Build and publish
run: |
poetry version $(git describe --tags --abbrev=0 | sed s/^v//)
poetry build
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish
toml-cli set project.version $(git describe --tags --abbrev=0 | sed s/^v//)
uv build
uv publish --token ${{ secrets.PYPI_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 1f895c9

Please sign in to comment.