From 5b924d0f68632d5ee88fc46ca212071c05248c5c Mon Sep 17 00:00:00 2001 From: Guy Gregory Date: Tue, 8 Jul 2025 22:57:04 +0100 Subject: [PATCH] Add GitHub Action to build site on push --- .github/workflows/build-site.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build-site.yml diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml new file mode 100644 index 0000000..dbaa6f0 --- /dev/null +++ b/.github/workflows/build-site.yml @@ -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'