-
-
Notifications
You must be signed in to change notification settings - Fork 26
54 lines (52 loc) · 1.38 KB
/
pollen.render.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
52
53
54
name: Pollen - Render website
on:
workflow_run:
workflows: ['Pollen.jl build - dev', 'Pollen.jl build - PR preview', 'Pollen.jl build - Release']
types:
- completed
workflow_dispatch:
# TODO: add concurrency limit
jobs:
pollen:
name: "Pollen - Prerender static frontend and deploy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: pollen
path: data
- uses: actions/checkout@v3
with:
ref: "gh-pages"
path: pages
- uses: actions/checkout@v3
with:
repository: lorenzoh/pollenjl-frontend
path: frontend
ref: main
- name: Move Pollen data to static folder
run: |
ls
rm -rf data/.git
cp -r data/ frontend/static/
- uses: actions/setup-node@v2
- name: Install dependencies
run: |
cd frontend
npm install
- name: Build
run: |
cd frontend
npm run build
- name: Deploy changes
run: |
ls -lt
rm -r frontend/build/data
cp -r frontend/build/** pages
cp -r data pages/
cd pages
git config user.name github-actions
git config user.email [email protected]
git add -f .
git commit -m "Deploy documentation (Pollen.jl)"
git push