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 : Deploy to GitHub Pages
1+ name : Build
2+
23on :
34 push :
45 branches : ["main"]
5- workflow_dispatch :
6+
67jobs :
7- deploy :
8+ build :
89 runs-on : ubuntu-latest
9- permissions :
10- contents : " read"
11- pages : " write"
12- id-token : " write"
13- environment :
14- name : github-pages
15- url : ${{ steps.deployment.outputs.page_url }}
1610 steps :
17- - name : Checkout
18- uses : actions/checkout@v4
19-
20- - name : Setup Python
21- uses : actions/setup-python@v5
11+ - uses : actions/checkout@v4
12+ with :
13+ fetch-depth : 0
14+
15+ - uses : actions/setup-python@v5
2216 with :
2317 python-version : " 3.12"
24-
18+
2519 - name : Install dependencies
2620 env :
2721 PYO3_USE_ABI3_FORWARD_COMPATIBILITY : " 1"
28- run : |
29- python -m pip install --upgrade pip
30- pip install -r requirements.txt
31-
32- - name : Build site
33- run : |
34- pelican content -o output -s publishconf.py
35-
36- - name : Upload artifact
37- uses : actions/upload-pages-artifact@v3
38- with :
39- path : output
40-
41- - name : Deploy to GitHub Pages
42- id : deployment
43- uses : actions/deploy-pages@v4
22+ run : pip install -r requirements.txt
23+
24+ - name : Build and deploy
25+ run : make github
You can’t perform that action at this time.
0 commit comments