-
Notifications
You must be signed in to change notification settings - Fork 84
37 lines (36 loc) · 1.05 KB
/
deploy.yml
File metadata and controls
37 lines (36 loc) · 1.05 KB
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
name: Lint and Publish to wiki.t2linux.org
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: xt0rted/markdownlint-problem-matcher@v3
- name: "Run Markdown linter"
uses: docker://avtodev/markdown-lint:v1
with:
args: docs/**/*.md
deploy:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/configure-pages@v6
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.x
- run: pip install zensical
- run: zensical build --clean
- run: bash -c "echo 'wiki.t2linux.org' > build/CNAME"
- run: bash -c "cp -r redirs/* build/guides"
- uses: actions/upload-pages-artifact@v5
with:
path: build
- uses: actions/deploy-pages@v5