Skip to content

Commit 5cb5886

Browse files
committed
activate GitHub workflow
1 parent da913b1 commit 5cb5886

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy website ⚙️
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/**'
9+
- 'docs/**'
10+
11+
defaults:
12+
run:
13+
working-directory: docs
14+
15+
jobs:
16+
build:
17+
name: Build and Deploy Website
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions/setup-python@v2
22+
with:
23+
python-version: '3.x'
24+
- name: Install requirements 📦
25+
run: |
26+
sudo apt-get install -y python3-lxml
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
- name: Deploy 📦
30+
run: mkdocs gh-deploy --strict --force --message 'update website via GitHub Actions'

0 commit comments

Comments
 (0)