hugo-git-links/.forgejo/workflows/deploy.yaml

29 lines
752 B
YAML
Raw Normal View History

2023-10-27 16:11:39 +01:00
on: [push]
jobs:
2023-10-27 17:43:11 +01:00
build:
2023-10-27 17:45:04 +01:00
runs-on: docker
2023-10-27 16:11:39 +01:00
steps:
2023-10-27 17:43:11 +01:00
- uses: actions/checkout@v2
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v2
with:
hugo-version: "0.90.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 }}