Answers for "hugo deployment to ftp automatic"

Go
0

hugo deployment to ftp automatic

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.62.0'

    - name: Build
      run: hugo -D

    - name: Deploy
      uses: SamKirkland/[email protected]
      env:
        FTP_SERVER: ftp.myhosing.com
        FTP_USERNAME: myusername
        FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
        LOCAL_DIR: ./public/
        REMOTE_DIR:  /path/to/site/root/on/my/hosting/
        ARGS: --delete # will delete files on the server if you've deleted them in git
Posted by: Guest on April-08-2020

Browse Popular Code Answers by Language