-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) Β· 974 Bytes
/
Copy pathdocs.yml
File metadata and controls
38 lines (32 loc) Β· 974 Bytes
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
name: documentation
on:
push:
branches:
- 'main'
repository_dispatch:
jobs:
build_docs:
name: π Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout showdown repo
uses: actions/checkout@v3
with:
repository: showdownjs/showdown
path: repo
- name: β Copy website artifacts
id: website
run: |
rsync -acvh ./ ./public --exclude README.md --exclude repo --delete
- name: π· π Build documentation
id: build_docs
working-directory: ./repo
run: |
docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material build
rsync -acvh ./public/ ../public/docs
- name: π Deploy to GitHub Pages
if: steps.build_docs.outcome == 'success'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}