-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (32 loc) · 968 Bytes
/
slides.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: marp-to-pages
concurrency: marp-to-pages
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Copy images
run: mkdir build && cp -R imgs build/imgs
- name: Marp Build (html)
uses: docker://marpteam/marp-cli:v1.7.0
with:
args: presentation.md -o build/index.html
env:
MARP_USER: root:root
- name: Marp Build (pdf)
uses: docker://marpteam/marp-cli:v1.7.0
with:
args: --pdf --allow-local-files presentation.md -o build/presentation.pdf
env:
MARP_USER: root:root
- name: Deploy production
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./build/