Skip to content

Deploy Python Chile Static Site #5

Deploy Python Chile Static Site

Deploy Python Chile Static Site #5

Workflow file for this run

name: Deploy Python Chile Static Site
on:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install system dependencies for Pillow
run: |
sudo apt-get update
sudo apt-get install -y \
libjpeg-dev \
zlib1g-dev \
libpng-dev \
libfreetype6-dev \
libtiff5-dev \
liblcms2-dev \
libwebp-dev \
tcl-dev \
tk-dev \
python3-tk \
libharfbuzz-dev \
libfribidi-dev \
libxcb1-dev
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Debug repo structure
run: ls -R .
- name: build static site
run: pelican content -s publishconf.py -o output
- name: upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./output
deploy:
needs: build-deploy
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: deploy to github pages
id: deployment
uses: actions/deploy-pages@v4