Advertisement
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
- # Setup key
- - run: set -eu
- - run: mkdir "$HOME/.ssh"
- - run: echo "${{ secrets.DEPLOY_PRIVATE }}" > "$HOME/.ssh/key"
- - run: chmod 600 "$HOME/.ssh/key"
- # Deploy
- - 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/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement