-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (51 loc) · 1.19 KB
/
pages.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: Refresh notes
on:
push:
branches:
- master
paths:
- modules/**
- input/**
- .github/workflows/pages.yml
- dev/*
- docs/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@v4
with:
path: master
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
path: gh-pages
ref: gh-pages
- name: Checkout notes branch
uses: actions/checkout@v4
with:
path: notes
ref: notes
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 10
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install markdown-include
run: npm install markdown-include
- name: Install grip
run: pip install grip
- name: Git identity setup
run: ./master/dev/gitconfig.sh
- name: Expand MarkDown files
run: ./master/dev/expand.sh
- name: Push Markdown files
run: ./master/dev/push_md.sh
- name: Generate and push HTML files
run: ./master/dev/html.sh
env:
GRIP_PASSWORD: ${{ secrets.GRIP_PASSWORD }}