Skip to content

Commit

Permalink
Switched to uv publish from twine.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverandrich committed Sep 25, 2024
1 parent f3031e8 commit 5f48f8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@ jobs:
- name: Build
run: uv build

- name: Check
run: uvx twine check dist/*

- name: Publish
run: |
uvx twine upload dist/*
uv publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}

- name: Build documentation
run: uvx --with mkdocs-material mkdocs build
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ VENV_DIRNAME := ".venv"

# publish release
@publish: build
uvx twine upload dist/*
uv publish

# upgrade/install all dependencies defined in pyproject.toml
@upgrade: create_venv
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ markdown_extensions:
extra:
social:
- icon: fontawesome/brands/mastodon
link: https://fosstodon.org/@oliverandrich
link: https://social.tchncs.de/@oliverandrich
- icon: fontawesome/brands/github
link: https://github.com/oliverandrich
- icon: fontawesome/brands/linkedin
Expand Down

0 comments on commit 5f48f8c

Please sign in to comment.