thesatelliteoflove/.gitea/workflows/hugo_build.yaml

22 lines
614 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-19 22:28:10 +01:00
- run: apk add --no-cache nodejs
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:16:32 +01:00
- run: go version
2024-11-19 22:24:19 +01:00
- run: apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo
2024-11-19 22:26:23 +01:00
- run: hugo version
- run: hugo
2024-11-19 23:00:24 +01:00
- run: ls -lah
2024-11-19 23:02:15 +01:00
- run: apk add rsync
2024-11-19 23:03:06 +01:00
- run: rsync -avz --delete ./public/ /sites/tsol/