-
Notifications
You must be signed in to change notification settings - Fork 53
48 lines (40 loc) · 1.11 KB
/
main.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
42
43
44
45
46
47
48
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: build
run: ./build_with_docker.sh
- name: Archive PDF, HTML and EPUB output
uses: actions/upload-artifact@v4
with:
name: HTML, PDF and EPUB books
path: |
build/*.pdf
build/*.html
build/*.css
build/*.epub
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# Only publish the produced book when this was triggered on the main branch,
# and as part of a push (not as part of a pull request).
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
# Check links in markdown files.
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: '.mlc_config.json'