Need help with artifacts in yaml file

Hi there. I´m trying to create artifacts from pipeline success when I push to repo from a Laravel project I´m currently working. I follow the next steps to achieve it:

 // .gitlab-ci.yml
deploy_production:
  stage: deploy
  script:
    ##
    ## Install ssh-agent if not already installed, it is required by Docker.
    //........
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh

    - ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
    - chmod 644 ~/.ssh/known_hosts
    //.......
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
    - envoy run deploy --commit="$CI_COMMIT_SHA"
  environment:
    name: production
    url: https://some-url-project.network

  artifacts:
    untracked: true
    paths:
      - ./
    expire_in: 1 week
    name: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME"
    when: on_success

  only:
    - master

Guys this get all the files and create the artifact.zip file and after download it I see aren’t the /public assets files and others, like node_modules folder. But I’m writing the “untracked” directive to ignore this from .gitignore. So, how I can retrieve all the files to artifact.zip file after pipeline success?