Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration example #7

Open
reactmore opened this issue Dec 29, 2022 · 1 comment
Open

configuration example #7

reactmore opened this issue Dec 29, 2022 · 1 comment

Comments

@reactmore
Copy link

My Action Config

on:
  push:
  - name: 馃搨 Sync Files
      uses: SamKirkland/web-deploy@v1
      with:
        target-server: ${{ secrets.server}}
        remote-user: ${{ secrets.user}}
        private-ssh-key: ${{ secrets.SSH_KEY }}
        ssh-port: ${{ secrets.port}}
        destination-path: ~/core/
        rsync-options: --delete-after --human-readable --exclude=.git* --exclude=.git/ --exclude=README.md --exclude=readme.md --exclude=.gitignore --exclude=public/uploads/*

It works when uploading to the server but rsync removes the folders vendor and .env how can these 2 things not be deleted on the server?

@cskwrd
Copy link

cskwrd commented Feb 28, 2023

It's my understanding that the flag --delete-after will delete files at the destination (that don't exist in source) after the copy operations have been performed.

man rsync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants