Add step to continously deploy the Jekyll site
Jekyll / jekyll (push) Failing after 23s
Details
Jekyll / jekyll (push) Failing after 23s
Details
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
parent
097fc8acc6
commit
557269cc93
|
@ -1,8 +1,8 @@
|
||||||
name: Jekyll
|
name: Jekyll
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
# branches:
|
||||||
- main
|
# - main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -43,3 +43,14 @@ 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
|
||||||
|
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/
|
||||||
|
|
Loading…
Reference in New Issue