Skip to content

Commit d26d197

Browse files
committed
Merge branch 'feature/github-pages'
2 parents ad87329 + 4a31e18 commit d26d197

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
test:
13+
if: github.ref != 'refs/heads/main'
14+
runs-on: ubuntu-latest
15+
container:
16+
image: python:3.8-buster
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Install dependencies
22+
run: pip install -r requirements.txt
23+
24+
- name: Build MkDocs site for testing
25+
run: mkdocs build --strict --verbose --site-dir test
26+
27+
- name: Upload test artifacts
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: test
31+
path: test
32+
33+
deploy:
34+
if: github.ref == 'refs/heads/main'
35+
runs-on: ubuntu-latest
36+
container:
37+
image: python:3.8-buster
38+
steps:
39+
- name: Checkout code
40+
uses: actions/checkout@v4
41+
42+
- name: Install dependencies
43+
run: pip install -r requirements.txt
44+
45+
- name: Build MkDocs site for deployment
46+
run: mkdocs build --strict --verbose
47+
48+
- name: Upload deployment artifacts
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: public
52+
path: public

0 commit comments

Comments
 (0)