Skip to content

Commit 7e8053c

Browse files
committed
refactor(ci): pages from actions
1 parent 32d761d commit 7e8053c

File tree

3 files changed

+44
-28
lines changed

3 files changed

+44
-28
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/pages.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: 3.12
17+
cache: pip
18+
19+
- run: pip install mkdocs-material
20+
21+
- run: mkdocs build
22+
23+
- uses: actions/upload-pages-artifact@v3
24+
with:
25+
path: site/
26+
27+
deploy:
28+
needs: build
29+
30+
permissions:
31+
pages: write
32+
id-token: write
33+
34+
environment:
35+
name: github-pages
36+
url: ${{ steps.deployment.outputs.page_url }}
37+
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
site/
2+
venv/

0 commit comments

Comments
 (0)