oscar.blue/.forgejo/workflows/deploy.yaml
Oscar Blue 0628a6772b
All checks were successful
/ build (push) Successful in 18s
Updated workflow to target main branch
2023-12-10 23:02:44 +00:00

28 lines
753 B
YAML

on: [push]
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v2
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v2
with:
hugo-version: "0.121.1"
extended: true
- name: Clone theme
run: git submodule update --init --recursive
- name: Hugo build
run: hugo -v
- name: Rsync Deployments Action
uses: https://github.com/Burnett01/rsync-deployments@5.2
with:
switches: -avzr --delete
path: public/
remote_path: ${{ secrets.remote_path }}
remote_host: ${{ secrets.remote_host }}
remote_user: ${{ secrets.remote_user }}
remote_key: ${{ secrets.remote_key }}