diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-16 16:10:46 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-05-16 16:31:37 +0200 |
commit | 9d856c0c09fb07bf7f71b9074044f9fafcca6840 (patch) | |
tree | decde941ea08091e627a777537c2ad9a052f7cee /.github/workflows | |
parent | roll back Ruby as well (diff) | |
download | egor-tensin.github.io-9d856c0c09fb07bf7f71b9074044f9fafcca6840.tar.gz egor-tensin.github.io-9d856c0c09fb07bf7f71b9074044f9fafcca6840.zip |
workflows/jekyll: rsync _site/ to server
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/jekyll.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 647d275..3094f4a 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -29,3 +29,10 @@ jobs: run: | nohup make serve & sleep 3 && make wget + - name: Set up ssh-agent + uses: webfactory/ssh-agent@v0.5.3 + with: + ssh-private-key: '${{ secrets.REMOTE_SSH_KEY }}' + - name: Deploy + run: | + rsync -avh -e 'ssh -o StrictHostKeyChecking=no' _site/ '${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.REMOTE_DIR }}/' --delete |