Skip to content

Commit abad96f

Browse files
committed
Use ref_name and only trigger on new version tags
1 parent 23a6151 commit abad96f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/docs-site-deploy.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: docs-site-deploy
22
on:
33
push:
4-
branches:
5-
- main
6-
- dev-mkdocs
4+
tags:
5+
- "v*"
76
permissions:
87
contents: write
98
jobs:
@@ -29,4 +28,4 @@ jobs:
2928
mkdocs-material-
3029
- run: pip install mkdocs-open-in-new-tab mike
3130
- run: pip install mkdocs-material
32-
- run: mike deploy --push --update-aliases ${{ github.ref }} latest
31+
- run: mike deploy --push --update-aliases ${{ github.ref_name }} latest

0 commit comments

Comments
 (0)