Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build static site

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install pelican markdown
- name: Generate static HTML
run: pelican content -s publishconf.py
- name: Ensure CNAME file
run: echo 'pedanticjournal.com' > docs/CNAME
- name: Commit and push changes
uses: EndBug/add-and-commit@v9
with:
add: 'docs'
message: 'Automated site build'