midtowndrafting.com/.gitea/workflows/deploy.yaml
Brooke ed067e2891
Some checks failed
Hugo / build (push) Failing after -8s
.
2024-05-06 18:49:51 -04:00

29 lines
No EOL
778 B
YAML

name: Hugo
on:
push:
branches:
- main
jobs:
build:
image: betterweb/hugo:extended-latest
steps:
- name: Grab packages
run: apk add rsync openssh-client
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Run build task
run: hugo --minify
- name: Test static page
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "public/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}