-
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (42 loc) · 1.03 KB
/
node.js.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: BuildAndDeploy
on:
push:
branches: [ "main" ]
jobs:
call-workflow-passing-data:
permissions:
contents: write
pull-requests: write
uses: ./.github/workflows/compile.yml
with:
nodeVersion: 18.13.0
build:
needs:
- call-workflow-passing-data
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.13.0
# cache: 'npm'
- run: |
cd v2
cd rscg_examples_site
npm i
npm run build
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: docsv2
path: 'v2/rscg_examples_site/build/*'
retention-days: 1
- name: upload documentation to github pages
run: |
cp -r v2/rscg_examples_site/build/* docs/v2/
- uses: EndBug/add-and-commit@v9
with:
message: 'Deploy documentation'
default_author: github_actions
cwd: './docs'