22 lines
614 B
YAML
22 lines
614 B
YAML
name: Build Hugo Site
|
|
run-name: ${{ gitea.actor }} is building The Satellite of Love
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
- run: apk add --no-cache nodejs
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: 'true'
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '>=1.17.0'
|
|
- run: go version
|
|
- run: apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo
|
|
- run: hugo version
|
|
- run: hugo
|
|
- run: ls -lah
|
|
- run: apk add rsync
|
|
- run: rsync -avz --delete ./public/ /sites/tsol/ |