Skip to content

Commit 00d6c20

Browse files
authored
docs: only build on release
1 parent b8ae0ff commit 00d6c20

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ name: Build docs
44

55
on:
66
push:
7-
branches:
8-
- main
7+
tags:
8+
- "v*"
99
workflow_dispatch:
1010

1111
concurrency:
@@ -26,6 +26,8 @@ jobs:
2626
- run: |
2727
make docs
2828
- uses: peaceiris/actions-gh-pages@v4
29+
if: github.ref == 'refs/heads/main'
2930
with:
31+
keep_files: true
3032
github_token: ${{ secrets.GITHUB_TOKEN }}
3133
publish_dir: ./public

0 commit comments

Comments
 (0)