Add steps to continously deploy the Jekyll site #3
|
@ -43,8 +43,8 @@ jobs:
|
|||
run: |
|
||||
docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/site" -w /site \
|
||||
jekyll build --verbose
|
||||
- name: Load ssh key
|
||||
id: load_ssh_key
|
||||
- name: Prepare ssh key
|
||||
id: prepare_ssh_key
|
||||
#if: ${{ github.ref == 'main' }}
|
||||
run: |
|
||||
echo "${{ secrets.WWW_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
|
||||
|
@ -54,5 +54,5 @@ jobs:
|
|||
#if: ${{ github.ref == 'main' }}
|
||||
run: |
|
||||
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/
|
||||
|
|
Loading…
Reference in New Issue