-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (32 loc) · 1.1 KB
/
mkdocs-deploy.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
# This is the E-TRAINEE GitHub Actions configuration file.
#
# A pipeline is composed of independent jobs that run scripts, grouped into stages.
# Stages run in sequential order, but jobs within stages run in parallel.
name: deploy_to_gh-pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
- run: pip install --upgrade pip && pip install -U urlextract bs4 requests
- run: python scripts/link_checker.py
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
- run: pip install --upgrade pip && pip install -U mkdocs mkdocs-jupyter jupyter_contrib_nbextensions notebook==6.5.5
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- run: mkdocs gh-deploy --config-file mkdocs/mkdocs.yml --force --clean