-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 907 Bytes
/
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
name: Deploy to Gh Pages
on:
push:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout current branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Copy images folder
run: |
if [[ -d images ]]; then
mkdir -p static
cp -R images static/images
fi
- name: Build slides.md
uses: docker://marpteam/marp-cli:v3.0.2
with:
args: --output static/index.html slides.md
env:
MARP_USER: root:root
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./static
cname: marp.toniogela.dev