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 11 additions and 0 deletions
Showing only changes of commit c4052eaf9e - Show all commits

View File

@ -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/