Skip to content

Commit 43ed03f

Browse files
committed
chore: call gh-pages deploy right in workflow yml & support trigger event
1 parent 57425c9 commit 43ed03f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches: [master]
99
pull_request:
1010
branches: [master]
11+
repository_dispatch:
12+
types: trigger-build
1113

1214
jobs:
1315
build:
@@ -24,4 +26,6 @@ jobs:
2426
with:
2527
node-version: ${{ matrix.node-version }}
2628
- run: npm install
27-
- run: npm run deploy
29+
- run: npm run build
30+
- run: echo coldemo.js.org > build/CNAME
31+
- run: npx gh-pages -d ./build -b master -r "https://${{ secrets.ACCESS_TOKEN }}@github.com/coldemo/coldemo.github.io.git" -u "gh-pages <[email protected]>"

0 commit comments

Comments
 (0)