-
-
Notifications
You must be signed in to change notification settings - Fork 408
53 lines (52 loc) · 1.52 KB
/
ghpages.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
name: Deploy GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: '**/package-lock.json'
- working-directory: page
run: npm install -D
- name: Parse Markdowns
working-directory: tools
run: |
npm install -D
node mdValidator.js
node mdParser.js
node generateIcs.js
node generateIcs4OpenedCfps.js
node generateRSS.js
node geoCodes.js
- working-directory: page
run: npm run build
- name: Make all-*.json files available at the site root
working-directory: tools
run: |
mv ../page/src/misc/all-events.json ../page/build/all-events.json
mv ../page/src/misc/all-cfps.json ../page/build/all-cfps.json
mv ../page/src/misc/*.ics ../page/build/
mv ../page/src/misc/feed-events.* ../page/build/
- name: Deploy to GitHub Pages
if: github.ref_name == 'main'
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: page/build/
keep_history: true
fqdn: developers.events # CNAME
jekyll: false # Solve website 404
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}