]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
ci: use uv run on docs deploy (#3016)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Sat, 13 Sep 2025 08:53:30 +0000 (10:53 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Sep 2025 08:53:30 +0000 (08:53 +0000)
.github/workflows/publish.yml
scripts/publish [deleted file]

index e190c77b5a46066aef64585c0e46aeb1cdbd3aae..c41fb46f85dfd47cb8ba669f260d7a1cd4d04c72 100644 (file)
@@ -89,4 +89,4 @@ jobs:
         run: scripts/install
 
       - name: Publish documentation ðŸ“š to GitHub Pages
-        run: mkdocs gh-deploy --force
+        run: uv run mkdocs gh-deploy --force
diff --git a/scripts/publish b/scripts/publish
deleted file mode 100755 (executable)
index 0901e7f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh -e
-
-VERSION_FILE="starlette/__init__.py"
-
-if [ ! -z "$GITHUB_ACTIONS" ]; then
-  git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
-  git config --local user.name "GitHub Action"
-
-  VERSION=`grep __version__ ${VERSION_FILE} | grep -o '[0-9][^"]*'`
-
-  if [ "refs/tags/${VERSION}" != "${GITHUB_REF}" ] ; then
-    echo "GitHub Ref '${GITHUB_REF}' did not match package version '${VERSION}'"
-    exit 1
-  fi
-fi
-
-set -x
-
-uv run twine upload dist/*
-uv run mkdocs gh-deploy --force