-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.11 KB
/
master.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
name: Build and Deploy
on:
push:
branches: [master]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Cache node-modules 💽
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install and Build 🔧
run: |
npm install --no-optional reveal-md decktape
mkdir build
cp -r img build/
./node_modules/.bin/reveal-md --preprocessor includes.js --css custom.css --static build --template template.html
node ./node_modules/decktape/decktape.js reveal -s 2048x1024 --chrome-path "/opt/google/chrome/chrome" build/index.html build/slides.pdf
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build