- Lab
- A Cloud Guru
Creating a Release with GitHub Actions
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.
Path Info
Table of Contents
-
Challenge
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
-
Challenge
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
-
Challenge
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
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.