File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 workflow_dispatch :
66jobs :
77 deploy :
8- uses : " getpelican/pelican/.github/workflows/github_pages.yml@main "
8+ runs-on : ubuntu-latest
99 permissions :
1010 contents : " read"
1111 pages : " write"
1212 id-token : " write"
13- env :
14- PYO3_USE_ABI3_FORWARD_COMPATIBILITY : " 1"
15- with :
16- settings : " publishconf.py"
17- requirements : " -r requirements.txt"
13+ environment :
14+ name : github-pages
15+ url : ${{ steps.deployment.outputs.page_url }}
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Setup Python
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version : " 3.12"
24+
25+ - name : Install dependencies
26+ env :
27+ 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
You can’t perform that action at this time.
0 commit comments