This commit is contained in:
parent
5e1dec83fc
commit
da489ebded
1 changed files with 8 additions and 0 deletions
|
@ -27,5 +27,13 @@ jobs:
|
|||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
- name: Setup SSH
|
||||
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H smokey >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Deploy
|
||||
run: rsync -azvr public/* root@smokey:/var/www/alexselimov.com/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue