hugo-json/.forgejo/workflows/deploy.yaml

28 lines
795 B
YAML
Raw Normal View History

2024-06-16 16:45:23 -04:00
name: Hugo
on:
push:
branches:
- main
jobs:
build:
runs-on: hugo-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Copy exampleSite Files
2024-06-16 16:49:32 -04:00
run: mkdir -p themes/hugo-maintenance && cp -v ./* !themes/hugo-maintenance && cp -v /themes/hugo-maintenance/exampleSite/hugo.yaml .
2024-06-16 16:45:23 -04:00
- 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 }}
2024-06-16 16:48:35 -04:00
TARGET: ${{ secrets.REMOTE_TARGET }}