Advertisement
Guest User

Untitled

a guest
Nov 25th, 2021
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. name: Deploy
  2. on:
  3. push:
  4. branches:
  5. - main
  6. jobs:
  7. deploy:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. # Setup key
  12. - run: set -eu
  13. - run: mkdir "$HOME/.ssh"
  14. - run: echo "${{ secrets.DEPLOY_PRIVATE }}" > "$HOME/.ssh/key"
  15. - run: chmod 600 "$HOME/.ssh/key"
  16. # Deploy
  17. - run: rsync -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" --archive --compress --delete --exclude='dist' --exclude="storage" --exclude='.env' . [email protected]:/var/www/user/data/www/site.ru/
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement