File tree Expand file tree Collapse file tree 2 files changed +43
-18
lines changed Expand file tree Collapse file tree 2 files changed +43
-18
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Pages
2+
3+ on :
4+ workflow_dispatch :
5+
6+ push :
7+ branches :
8+ - " main"
9+
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v3
21+ - run : ls -la
22+ - name : Setup Pages
23+ uses : actions/configure-pages@v2
24+ - name : Setup Python environment
25+ uses : actions/setup-python@v4
26+ with :
27+ python-version : 3.12
28+ - run : pip install -r requirements.txt
29+ - run : mkdocs build --site-dir ./_site
30+ - name : Upload artifact
31+ 32+
33+ # The deployment job
34+ deploy :
35+ environment :
36+ name : github-pages
37+ url : ${{ steps.deployment.outputs.page_url }}
38+ runs-on : ubuntu-latest
39+ needs : build
40+ steps :
41+ - name : Deploy to GitHub Pages
42+ id : deployment
43+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments