]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
ci: publish docs on `workflow_dispatch` (#3015)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Sat, 13 Sep 2025 08:47:18 +0000 (10:47 +0200)
committerGitHub <noreply@github.com>
Sat, 13 Sep 2025 08:47:18 +0000 (10:47 +0200)
.github/workflows/publish.yml

index 6bc9b2d21ccdeca2e3643d24d821711bcfe6f7e4..e190c77b5a46066aef64585c0e46aeb1cdbd3aae 100644 (file)
@@ -4,6 +4,7 @@ on:
   push:
     tags:
       - '*'
+  workflow_dispatch:
 
 jobs:
   build:
@@ -39,6 +40,7 @@ jobs:
   pypi-publish:
     runs-on: ubuntu-latest
     needs: build
+    if: success() && startsWith(github.ref, 'refs/tags/')
 
     permissions:
       id-token: write
@@ -77,9 +79,11 @@ jobs:
           git config user.name github-actions[bot]
           git config user.email 41898282+github-actions[bot]@users.noreply.github.com
 
-      - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
+      - name: Install uv
+        uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1
         with:
           python-version: "3.12"
+          enable-cache: true
 
       - name: Install dependencies
         run: scripts/install