Guest User

Untitled

a guest
Sep 15th, 2021
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 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. - run: set -eu
  12. - run: echo "${{ secrets.DEP_KEY }}" > "/var/www/user/data/.ssh/key"
  13. - run: chmod 600 "/var/www/change/data/.ssh/key"
  14. - run: rsync -e "ssh -i /var/www/user/data/.ssh/key -o StrictHostKeyChecking=no" --archive --compress --delete . user@servername:/var/www/change/data/www/sitename.ru/
Advertisement
Add Comment
Please, Sign In to add comment