2024-11-19 14:09:39 -07:00
|
|
|
name: Build Hugo Site
|
|
|
|
run-name: ${{ gitea.actor }} is building The Satellite of Love
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
2024-11-19 20:30:16 -07:00
|
|
|
- run: apk add --no-cache nodejs rsync
|
|
|
|
- run: apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo
|
2024-11-19 14:09:39 -07:00
|
|
|
- uses: actions/checkout@v4
|
2024-11-19 15:05:21 -07:00
|
|
|
with:
|
|
|
|
submodules: 'true'
|
2024-11-19 14:12:20 -07:00
|
|
|
- uses: actions/setup-go@v3
|
2024-11-19 14:09:39 -07:00
|
|
|
with:
|
2024-11-19 14:12:20 -07:00
|
|
|
go-version: '>=1.17.0'
|
2024-11-19 14:26:23 -07:00
|
|
|
- run: hugo
|
2024-11-19 15:03:06 -07:00
|
|
|
- run: rsync -avz --delete ./public/ /sites/tsol/
|