Skip to content

Commit d411ca4

Browse files
authored
Build on CI to prove nothing broke
1 parent b5a6188 commit d411ca4

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
name: ci
1+
name: Deploy Mkdocs to GitHub Pages
2+
23
on:
3-
push:
4-
branches:
5-
- master
4+
pull_request:
5+
66
jobs:
7-
deploy:
7+
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- name: Checkout
11+
uses: actions/checkout@v4
1112
with:
1213
fetch-depth: 0
13-
- uses: actions/setup-python@v2
14+
- name: Setup Pages
15+
uses: actions/configure-pages@v5
16+
- uses: actions/setup-python@v5
1417
with:
1518
python-version: 3.x
16-
- run: mkdir -p site
17-
- run: pip install mkdocs
18-
- run: pip install mkdocs-material
19-
- run: pip install mkdocs-video
20-
- run: pip install git+https://github.com/srymh/MkdocsTagPlugin.git@ac1f02ba95527d11d84b5ec87f4e63851d57fc7d
21-
- run: pip install git+https://github.com/rkoe/mkdocs-emailprotect@ef91e3dda367bd6a3f65dda183559e1b929d6240
22-
- run: pip install mkdocs-git-revision-date-localized-plugin
23-
- run: pip install mkdocs-awesome-nav
24-
- run: mkdocs gh-deploy --force
19+
- name: Install dependencies
20+
run: pip install -r requirements.txt
21+
- name: Make a folder to stop a stupid error
22+
run: mkdir -p _site
23+
- name: Build mkdocs
24+
run: mkdocs build --clean --verbose --site-dir _site
25+
- name: Upload artifact
26+
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)