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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ignore .git folder from source #190

Closed
tarikmanoar opened this issue Apr 6, 2024 · 1 comment · Fixed by #192
Closed

How to ignore .git folder from source #190

tarikmanoar opened this issue Apr 6, 2024 · 1 comment · Fixed by #192

Comments

@tarikmanoar
Copy link

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 }}

This is my deploy.yml file

Here I tried to ignore ```.git`` folder and copy all files/folder except .git

@appleboy
Copy link
Owner

appleboy commented Jun 1, 2024

Please update the following config

source: "./*,!.git/"

replace with

source: "*,!.git"

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

Successfully merging a pull request may close this issue.

2 participants