commit eab542186a4c69ffb0893e2e5dcbfb9ea1d8768c parent 51ec22133d235799a6f3838461dc19bdc2aadeb2 Author: Chris <chris@echoz.io> Date: Thu, 2 Feb 2023 04:07:26 +0100 ci: add deployment workflow Diffstat:
| A | .github/workflows/deploy.yaml | | | 19 | +++++++++++++++++++ |
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml @@ -0,0 +1,19 @@ +name: Deploy website + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: jakejarvis/hugo-build-action@v0.105.0 + - shell: bash + run: | + apt-get update && apt-get install -y lftp + lftp -u "${{ secrets.FTP_USER }},${{ secrets.FTP_PASSWORD }}" "${{ secrets.FTP_HOST }}" -e "mirror -ceRX '.*' ./public . ; quit"