Closed tarikmanoar closed 5 months ago
name: DEPLOY on: push: branches: [master] jobs: deployment: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Copy repository contents via scp uses: appleboy/scp-action@master with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} port: ${{ secrets.PORT }} password: ${{ secrets.PASSWORD }} source: "./*,!.git/" target: ${{ secrets.DIR }}
Here I tried to ignore `.git folder and copy all files/folder except .git
`.git
Please update the following config
source: "./*,!.git/"
replace with
source: "*,!.git"
This is my deploy.yml file
Here I tried to ignore
`.git
folder and copy all files/folder except .git