-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (37 loc) · 996 Bytes
/
build.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
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_run:
workflows: ["Collect"]
branches: [main]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: npm install
run: npm install
- name: npm run collect
run: npm run collect
- name: npm run build
run: npm run build
- name: push changes to remote
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: git add
run: git add gitBuild && git commit -m "Initial build subtree commit"
- name: git push
run: |
git subtree split --prefix gitBuild -b gh-pages
git push -f origin gh-pages:gh-pages
git branch -D gh-pages