reformatted some files and add black to pyproject.toml (#76) #59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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 |