Skip to content

Commit f121022

Browse files
committed
fix: specify docs action to run on every branch pushes, but to be deployed only on master branch
1 parent 7505959 commit f121022

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy Docs
22

33
on:
44
push:
5-
branches: [master,feat/develop]
5+
branches: '*'
66
paths:
77
- 'docs/**'
88
- '.github/workflows/docs.yml'
@@ -58,6 +58,7 @@ jobs:
5858
path: docs/.vitepress/dist
5959

6060
deploy:
61+
if: github.ref == 'refs/heads/master'
6162
environment:
6263
name: github-pages
6364
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)