Skip to content

Commit b5b058a

Browse files
committed
first workflow
1 parent 42726ac commit b5b058a

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/deploy-site.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy Python Perú to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: true
18+
- uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.12'
21+
- name: Set Locale
22+
run: |
23+
sudo apt-get update && sudo apt-get install tzdata locales -y && sudo locale-gen es_ES.UTF-8
24+
sudo localectl set-locale LANG="es_ES.UTF-8"
25+
export LANG="es_ES.UTF-8"
26+
export LANGUAGE="es_ES.UTF-8"
27+
sudo update-locale
28+
locale -a
29+
locale
30+
locale -c -k LC_NUMERIC
31+
localectl status
32+
- name: Install Dependencies
33+
run: |
34+
pip install -r requirements.txt
35+
- name: Install graphviz
36+
run: |
37+
sudo apt-get install graphviz nodejs npm
38+
sudo ./bin/install-sketchviz.sh
39+
- name: Build Blog
40+
run: |
41+
ablog build
42+
- name: Publish to GitHub Pages
43+
uses: peaceiris/actions-gh-pages@v3
44+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
45+
with:
46+
publish_branch: gh-pages
47+
github_token: ${{ secrets.GITHUB_TOKEN }}
48+
publish_dir: _website/
49+
exclude_assets: '.github'
50+
force_orphan: true
51+
cname: python.pe

0 commit comments

Comments
 (0)