https://github.com/IITC-College/cicd-lab04-artifacts-and-outputs

Part 1: Build the build Job

Actions

  1. Create a Workflow file inside:
.github/workflows/
  1. Configure the Workflow to run on every push
  2. Create a Job named build
  3. Add a Step to checkout the repository code
  4. Add a Step to:
  5. Add a Step that defines an Output named artifact-name with the value build-output
  6. Give the Step an id:
  7. Expose the Output at the Job level using outputs:
  8. Add a Step that uploads the dist/ folder as an Artifact

Part 2: Build the inspect Job

Actions

  1. Create a Job named inspect
  2. Add a dependency on the build Job using needs:
  3. Add a Step that prints the Output value from the build Job
  4. Add a Step that downloads the Artifact into the dist/ folder