Skip to content

Deploy Python Chile Static Site #2

Deploy Python Chile Static Site

Deploy Python Chile Static Site #2

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 dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- 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