Your team has set up an automated build process for your application code. You want to store this artifact so other teams can access it for downstream work. You will need to build out the workflow file to leverage GitHub Packages to store new versions of your code with each new build.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Set up a GitHub Repository
- Fork the repo
https://github.com/linuxacademy/content-github-actions-deep-dive-lesson
. - Check out the
lab
branch and confirm/github/workflows/deploy-pipeline.yaml
containslint
andbuild
jobs.Note: You can clone the repo locally or work in the GitHub browser.
If you have trouble, the complete code for one possible solution is on the
lab-package-solution
.
- Fork the repo
- Create a Release
- Create a
publish
job. - Add a step to create a release and commit the changes.
- Check the release in the GitHub console. It has the complete codebase, but not the build artifact with the dependencies.
- Create a
- Add a Release Asset
- Set the
publish
job to run after thebuild
job. - Add a step to the
publish
job to upload the build artifact as a part of the release and commit the changes.Note: The new release will contain a zipped bundle with all the libraries.
- Set the