Add steps to continously deploy the Jekyll site #3

Merged
btlogy merged 7 commits from 1.site-deploy into main 2024-05-23 19:33:32 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 83ca189fc9 - Show all commits

View File

@ -43,8 +43,8 @@ jobs:
run: | run: |
docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/site" -w /site \ docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/site" -w /site \
jekyll build --verbose jekyll build --verbose
- name: Load ssh key - name: Prepare ssh key
id: load_ssh_key id: prepare_ssh_key
#if: ${{ github.ref == 'main' }} #if: ${{ github.ref == 'main' }}
run: | run: |
echo "${{ secrets.WWW_DEPLOY_KEY }}" > ~/.ssh/id_ed25519 echo "${{ secrets.WWW_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
@ -54,5 +54,5 @@ jobs:
#if: ${{ github.ref == 'main' }} #if: ${{ github.ref == 'main' }}
run: | run: |
rsync -halvi \ rsync -halvi \
-e "ssh -e ~/.ssh/id_ed25519 -a -x -o StrictHostKeyChecking=no" \ -e "ssh -a -x -o StrictHostKeyChecking=no" \
./_site/ www@lafs.eval.latfa.net:/var/www/site/ ./_site/ www@lafs.eval.latfa.net:/var/www/site/