-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (32 loc) · 1.12 KB
/
deploy.yml
File metadata and controls
41 lines (32 loc) · 1.12 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
38
39
40
41
name: Deploy MkDocs site
on:
push:
branches: [ main ] # change to master if your branch is named master
release:
types: [ published ] # redeploy site when new firmware is released
permissions:
contents: write # needed so the action can push to gh-pages
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.x"
- name: Install MkDocs + Material
run: |
pip install mkdocs-material
- name: Install Mkdocs-plugin
run: |
pip install mkdocs-macros-plugin pyyaml mkdocs-glightbox pymdown-extensions
- name: Build MkDocs site
run: mkdocs build --strict
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
cname: meshcore.ca