Skip to content

Commit fbd74ed

Browse files
committed
Update deploy.yml
1 parent 0600435 commit fbd74ed

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: Deploy
22

33
on:
44
push:
5-
branches: ["main"]
6-
#pull_request:
7-
# branches: ["main"]
5+
branches-ignore:
6+
- gh-pages
7+
pull_request:
8+
branches-ignore:
9+
- gh-pages
810

911
jobs:
1012
build:
@@ -24,6 +26,11 @@ jobs:
2426
- run: cd test && npm i
2527
- run: node --run build
2628

29+
deploy:
30+
if: github.event_name == 'push' && github.ref_name == 'main'
31+
runs-on: ubuntu-latest
32+
33+
steps:
2734
- name: Deploy
2835
uses: JamesIves/github-pages-deploy-action@v4
2936
with:

0 commit comments

Comments
 (0)