2022-06-05 15:39:04 +02:00
|
|
|
name: Publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-06-05 15:54:40 +02:00
|
|
|
- main
|
2022-06-05 15:39:04 +02:00
|
|
|
schedule:
|
|
|
|
- cron: '0 8 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2022-06-05 16:04:20 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-06-05 15:39:04 +02:00
|
|
|
with:
|
2022-06-05 16:04:20 +02:00
|
|
|
submodules: 'recursive'
|
2022-06-05 15:39:04 +02:00
|
|
|
|
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
2022-06-05 15:56:37 +02:00
|
|
|
hugo-version: '0.100.1'
|
2022-06-05 15:39:04 +02:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: hugo -D
|
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: SamKirkland/FTP-Deploy-Action@3.0.0
|
|
|
|
with:
|
|
|
|
ftp-server: ${{ secrets.FTP_HOST }}
|
|
|
|
ftp-username: ${{ secrets.FTP_USERNAME }}
|
|
|
|
ftp-password: ${{ secrets.FTP_PASSWORD }}
|
|
|
|
local-dir: ${{ secrets.FTP_DIRECTORY }}
|