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