Skip to content

Commit b772c95

Browse files
Build always, deploy only on tags
1 parent 398cd68 commit b772c95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
release:
44
types: [created]
55
push:
6+
branches:
7+
- main
68
tags:
79
- '**'
810
jobs:
@@ -22,6 +24,7 @@ jobs:
2224
path: ./docs/build
2325

2426
deploy:
27+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
2528
permissions:
2629
pages: write
2730
id-token: write

0 commit comments

Comments
 (0)