From 8c631e209e29a229b6efb5e1bdc76a9f7c510df4 Mon Sep 17 00:00:00 2001 From: FabioL <1647128+loviuz@users.noreply.github.com> Date: Sun, 5 Jun 2022 15:39:04 +0200 Subject: [PATCH] Pubblicazione automatica --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0580e4a --- /dev/null +++ b/.github/workflows/main.yml @@ -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 }}