-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.42 KB
/
publishwebsite.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: Publish Website
on:
push:
branches: # triggers on any push to main
- main
workflow_dispatch:
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: node --version
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build-prod
# - name: Talks
# run: |
# mkdir -p dist/talks && cd dist/talks
# wget -O tmp.zip "https://www.dropbox.com/scl/fi/730bgalvk5ft1ftl1owz6/dist.zip?rlkey=ohh2go7evnjm2sh0bilbrp8ey&dl=1"
# ls -l
# unzip tmp
# mv dist rsc
# rm *.zip
# cd ../../
# - name: Apps
# run: |
# mkdir -p dist/apps && cd dist/apps
# wget -O exe.zip https://www.dropbox.com/s/c25yg42ouck6t7c/exe.zip?dl=0 && unzip exe && mv exe rxns
# rm *.zip
# cd ../../
- name: Blog
run: |
cd dist/
wget -O blog.zip https://www.dropbox.com/s/rmf2qg4byt5v4i9/_site.zip?dl=0 && unzip blog && mv _site blog
rm *.zip && cd ..
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: thewhitelab.org