Skip to content

Commit 5b924d0

Browse files
committed
Add GitHub Action to build site on push
1 parent bf0bbd1 commit 5b924d0

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/build-site.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build static site
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-python@v4
13+
with:
14+
python-version: '3.x'
15+
- name: Install dependencies
16+
run: |
17+
pip install pelican markdown
18+
- name: Generate static HTML
19+
run: pelican content -s publishconf.py
20+
- name: Ensure CNAME file
21+
run: echo 'pedanticjournal.com' > docs/CNAME
22+
- name: Commit and push changes
23+
uses: EndBug/add-and-commit@v9
24+
with:
25+
add: 'docs'
26+
message: 'Automated site build'

0 commit comments

Comments
 (0)