Skip to content

Simplify setup process with uv (#71) #55

Simplify setup process with uv (#71)

Simplify setup process with uv (#71) #55

Workflow file for this run

---
name: Deploy Python Perú to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set Locale
run: |
sudo apt-get update && sudo apt-get install tzdata locales -y && sudo locale-gen es_ES.UTF-8
sudo localectl set-locale LANG="es_ES.UTF-8"
export LANG="es_ES.UTF-8"
export LANGUAGE="es_ES.UTF-8"
sudo update-locale
locale -a
locale
locale -c -k LC_NUMERIC
localectl status
- name: Install graphviz
run: |
sudo apt-get install graphviz nodejs npm
- name: Install Dependencies
run: |
uv sync
npm install
- name: Build Blog
run: |
uv run poe build
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _website/
exclude_assets: '.github'
force_orphan: true
cname: python.pe