31 lines
705 B
YAML
31 lines
705 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
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v5
|
|
|
|
- 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: make build
|
|
|
|
- name: Deploy
|
|
run: |
|
|
rm -rf /site-output/*
|
|
cp -a public/. /site-output/
|