forked from ECCC-MSC/open-data
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 921 Bytes
/
Copy pathmkdocs-publish.yml
File metadata and controls
30 lines (30 loc) · 921 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
name: mkdocs deploy
on:
release:
types: [published]
jobs:
publish-documentation:
runs-on: ubuntu-latest
steps:
- name: Checking out release commit
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs==1.3.0 mkdocs-jupyter==0.20.1 lxml_html_clean
- name: Build documentation
run: mkdocs build
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
user_name: Dukestep
user_email: etiennepelletier@gmail.com
commit_message: updated via release ${{ github.event.release.tag_name }}