Skip to content

Commit ad6fcdc

Browse files
committed
feat: deploy gp config
1 parent 2f1bfe9 commit ad6fcdc

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/pelican.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

publishconf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
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"
1213
RELATIVE_URLS = False
1314

1415
FEED_ALL_ATOM = "feeds/all.atom.xml"

0 commit comments

Comments
 (0)