I want to skip a file named .gitignore during creation of the zip i tried -x and --exclude command but it is not working here is my code .
pipelines:
branches:
main:
- step:
name: Copy code as ZIP file
script:
- apt-get update && apt-get install -y zip
- git archive --format=zip HEAD -o code.zip -x .gitignore
artifacts:
- code.zip
I searched on forum but cannot find any solution