forked from easybuilders/easybuild-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 711 Bytes
/
deploy.yml
File metadata and controls
29 lines (25 loc) · 711 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
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: deploy tutorial (only on push to main branch)
on:
push:
branches: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: install mkdocs
run: |
pip install mkdocs mkdocs-material mkdocs-redirects mkdocs-git-revision-date-localized-plugin
mkdocs --version
- name: build tutorial
run: mkdocs build --strict
- name: deploy docs
run: mkdocs gh-deploy --force