Create main.yml #7
This file contains 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: Update Pelican Site | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: python:3.13-slim-bookworm | |
steps: | |
- name: Checkout code | |
uses: DiosDelRayo/DiosDelRayo.github.io@master | |
- name: Install Pelican | |
run: pip install pelican[markdown] pelican-tag-cloud pymdownx | |
- name: Build site | |
run: pelican content | |
- name: Deploy site | |
uses: gh-pages/deploy@4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
deploy_branch: master | |
build_dir: output |