From 5f48f8c92c3612acfb34386eb83fe9348cf038eb Mon Sep 17 00:00:00 2001 From: Oliver Andrich Date: Wed, 25 Sep 2024 09:47:55 +0200 Subject: [PATCH] Switched to uv publish from twine. --- .github/workflows/publish.yml | 8 ++------ justfile | 2 +- mkdocs.yml | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4d0a357..ad5ce8c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/justfile b/justfile index ff6fafe..5f17441 100644 --- a/justfile +++ b/justfile @@ -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 diff --git a/mkdocs.yml b/mkdocs.yml index 9fa66ed..15e8a51 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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