File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : httkweb
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : false
16+
17+ defaults :
18+ run :
19+ shell : bash
20+
21+ jobs :
22+ build :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v5
27+
28+ - name : Setup Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : " 3.12"
32+
33+ - name : Install project
34+ run : |
35+ python -m pip install --upgrade pip
36+ python -m pip install .
37+
38+ - name : Generate website
39+ run : make generate
40+
41+ - name : Upload artifact
42+ uses : actions/upload-pages-artifact@v3
43+ with :
44+ path : public
45+
46+ deploy :
47+ environment :
48+ name : github-pages
49+ url : ${{ steps.deployment.outputs.page_url }}
50+ runs-on : ubuntu-latest
51+ needs : build
52+ steps :
53+ - name : Deploy to GitHub Pages
54+ id : deployment
55+ uses : actions/deploy-pages@v4
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments