37 lines
964 B
YAML
37 lines
964 B
YAML
name: Build site
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: docker.gitea.com/runner-images:ubuntu-latest
|
|
volumes:
|
|
- /home/www/ooru.space:/site-output
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install Python dependencies
|
|
run: pip install pyyaml
|
|
|
|
- name: Generate content from entries
|
|
run: python scripts/generate_site.py data/entries.yml content/spaces
|
|
|
|
- name: Install Zola
|
|
run: |
|
|
curl -sL https://github.com/getzola/zola/releases/download/v0.22.1/zola-v0.22.1-x86_64-unknown-linux-gnu.tar.gz | tar xz
|
|
sudo mv zola /usr/local/bin/
|
|
|
|
- name: Build site
|
|
run: |
|
|
rm -rf /tmp/site-output
|
|
zola build -o /tmp/site-output
|
|
rm -rf /site-output/*
|
|
cp -a /tmp/site-output/. /site-output/
|