CI/CD artifact sharing

Hi

I just created a new project with CI/CD.

image: node:latest

before_script:

  • ls
  • apt update
  • apt install python3-pip --assume-yes
  • npm install -g @angular/cli

stages:

  • build
  • deploy

build:
stage: ‘build’
script:
- npm install
- ng build --prod --outputPath release
cache:
paths:
- node_modules/
artifacts:
when: on_success
name: ‘$CI_JOB_NAME-$CI_COMMIT_REF_NAME’
paths:
- release/
only:
- master

deploy:
stage: ‘deploy’
dependencies:
- build
script:
- pip3 install awscli --upgrade
- aws s3 sync release s3://$S3_BUCKET_NAME --delete
only:
- tags

So as you can see i create an artifact to “release/”. So the build runs and then when I goto the details of the job I can download the artifact and everything is fine. Then I create a tag on the repository/branch and it triggers the “deploy” but for some reason, the release folder or any remembrance of the artifact is not there. Is artifact only supported on sequential jobs.

thanks