Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: Deploy
- on:
- push:
- branches:
- - main
- jobs:
- deploy:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - run: set -eu
- - run: echo "${{ secrets.DEP_KEY }}" > "/var/www/user/data/.ssh/key"
- - run: chmod 600 "/var/www/change/data/.ssh/key"
- - 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