mirror of
https://github.com/loviuz/loviuz-website.git
synced 2025-01-03 20:09:28 +01:00
Pubblicazione automatica
This commit is contained in:
parent
d2c32f3a4a
commit
8c631e209e
33
.github/workflows/main.yml
vendored
Normal file
33
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
schedule:
|
||||
- cron: '0 8 * * *'
|
||||
|
||||
jobs:
|
||||
Deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: '0.101.0'
|
||||
|
||||
- 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 }}
|
Loading…
Reference in New Issue
Block a user