File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Blog Python Chile
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : write
10+ pages : write
11+ id-token : write
12+
13+ jobs :
14+ build-deploy :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : checkout repository
19+ uses : actions/checkout@v3
20+
21+ - name : setup python
22+ uses : actions/setup-python@v4
23+ with :
24+ python-version : " 3.11"
25+
26+ - name : install dependencies
27+ run : |
28+ python -m pip install --upgrade pip
29+ pip install -r requirements
30+
31+ - name : build static site
32+ run : pelican content -s publishconf.py -o output
33+
34+ - name : upload pages artifact
35+ uses : actions/upload-pages-artifact@v2
36+ widht :
37+ path : ./output
38+
39+ deploy :
40+ needs : build-deploy
41+ runs-on : ubuntu-latest
42+ environment :
43+ name : github-pages
44+ url : ${{ steps.deployment.outputs.page_url }}
45+
46+ steps :
47+ - name : deploy to github pages
48+ id : deployment
49+ uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change 99
1010# If your site is available via HTTPS, make sure SITEURL begins with https://
1111#SITEURL = "https://blog.pythonchile.cl"
12+ SITEURL = "https://python-chile.github.io"
1213RELATIVE_URLS = False
1314
1415FEED_ALL_ATOM = "feeds/all.atom.xml"
You can’t perform that action at this time.
0 commit comments