hugo-json/.forgejo/workflows/deploy.yaml
brooke 9aaa070634
All checks were successful
Hugo / build (push) Successful in 7s
update hugo yaml location
2024-06-16 16:52:13 -04:00

27 lines
800 B
YAML

name: Hugo
on:
push:
branches:
- main
jobs:
build:
runs-on: hugo-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Copy exampleSite Files
run: mkdir -p themes/hugo-maintenance && cp -rv layouts static archetypes assets themes/hugo-maintenance/ && cp -v exampleSite/hugo.yaml .
- name: Run build task
run: hugo --minify
- name: Deploy to Server
uses: https://git.myco.systems/mirrors/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 }}