Skip to content

Commit 889a1b4

Browse files
author
nebulaliu
committed
Merge branch 'main' into pages-config
2 parents 3c7fa4c + 0376992 commit 889a1b4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/node.js.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "pages-config" ]
9+
pull_request:
10+
branches: [ "pages-config" ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
with:
20+
ref: master
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 16
26+
27+
- name: Install dependencies
28+
run: npm install
29+
30+
- name: Build
31+
run: |
32+
rm -rf Demo
33+
npm run build
34+
35+
- name: Deploy to Pages
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
deploy_key: ${{ secrets.DEPLOY_KEY }}
39+
publish_dir: ./docs
40+
publish_branch: pages
41+
force_orphan: true
42+
git_config_name: nebulaliu
43+
git_config_email: [email protected]

0 commit comments

Comments
 (0)