Skip to content

Commit 84351a3

Browse files
authored
Only build/deploy docs on published release (#95)
1 parent ad2b8a7 commit 84351a3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
name: Deploy Docs
22

33
on:
4-
push:
5-
branches: [main]
6-
paths:
7-
- "cmd/**"
8-
- "docs/**"
9-
- "tools/docsgen/**"
4+
release:
5+
types: [published]
106
workflow_dispatch:
117

128
permissions:
139
contents: write
1410

1511
jobs:
1612
docs:
13+
if: startsWith(github.ref, 'refs/tags/v')
1714
runs-on: ubuntu-latest
1815

1916
steps:

0 commit comments

Comments
 (0)