thesatelliteoflove/.gitea/workflows/hugo_build.yaml

18 lines
522 B
YAML
Raw Normal View History

2024-11-19 22:09:39 +01: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-20 04:30:16 +01: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 22:09:39 +01:00
- uses: actions/checkout@v4
2024-11-19 23:05:21 +01:00
with:
submodules: 'true'
2024-11-19 22:12:20 +01:00
- uses: actions/setup-go@v3
2024-11-19 22:09:39 +01:00
with:
2024-11-19 22:12:20 +01:00
go-version: '>=1.17.0'
2024-11-19 22:26:23 +01:00
- run: hugo
2024-11-19 23:03:06 +01:00
- run: rsync -avz --delete ./public/ /sites/tsol/