-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1001 Bytes
/
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
name: Render talks
on:
push:
branches:
- master
jobs:
sync:
name: Render talks and publish to GitHub pages
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Render talks
run: |
npm install
node render-talks.js
sudo apt-get -y --no-install-recommends install libxml2-utils > /dev/null
.github/workflows/create-index-html.sh
git config --local user.email "[email protected]"
git config --local user.name "yours sincerely CI"
git add -f *.html
git add -f node_modules/**
git commit -m "Rendered talks"
- name: Refresh latest action branch
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'gh-pages'
force: true