From 557269cc93bb145de14543243984dd7b24e14de6 Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Thu, 23 May 2024 20:20:40 +0200 Subject: [PATCH] Add step to continously deploy the Jekyll site Signed-off-by: Benoit Donneaux --- .gitea/workflows/jekyll.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/jekyll.yaml b/.gitea/workflows/jekyll.yaml index 36053cc..059a672 100644 --- a/.gitea/workflows/jekyll.yaml +++ b/.gitea/workflows/jekyll.yaml @@ -1,8 +1,8 @@ name: Jekyll on: push: - branches: - - main +# branches: +# - main pull_request: env: @@ -43,3 +43,14 @@ jobs: run: | docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/site" -w /site \ jekyll build --verbose + - name: Load ssh key + id: load_ssh_key + #if: ${{ github.ref == 'main' }} + uses: LeastAuthority/ssh-agent-action@v1 + with: + private_key: ${{ secrets.WWW_DEPLOY_KEY }} + - name: Publish Jekyll site + id: publish_site + #if: ${{ github.ref == 'main' }} + run: | + rsync -halvi -e "ssh -a -x -o StrictHostKeyChecking=no" ./_site/ www@lafs.eval.latfa.net:/var/www/site/