Skip to content

Commit dd22af6

Browse files
authored
ci: publish docs on workflow_dispatch (#3015)
1 parent e18637c commit dd22af6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- '*'
7+
workflow_dispatch:
78

89
jobs:
910
build:
@@ -39,6 +40,7 @@ jobs:
3940
pypi-publish:
4041
runs-on: ubuntu-latest
4142
needs: build
43+
if: success() && startsWith(github.ref, 'refs/tags/')
4244

4345
permissions:
4446
id-token: write
@@ -77,9 +79,11 @@ jobs:
7779
git config user.name github-actions[bot]
7880
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
7981
80-
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
82+
- name: Install uv
83+
uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1
8184
with:
8285
python-version: "3.12"
86+
enable-cache: true
8387

8488
- name: Install dependencies
8589
run: scripts/install

0 commit comments

Comments
 (0)