Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

I figured out how to authenticate to GitHub Packages inside GitHub Actions.

License

Notifications You must be signed in to change notification settings

ParadoxV5/test-actions-get-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

I learned in java-mystring and mygem (Ruby) how to submit to GitHub Packages using GitHub Actions. Following GitHub’s guides, I was able to fetch those packages as dependencies for a hypothetical local development.

But, since GitHub Actions is for Continuous Integration and Deployment, what about retrieving from GitHub Packages inside GitHub Actions?

I tinkered in a private (now deleted) repository and have figured out the scripts for both Java (Maven) and Ruby (RubyGems). The trickiest part was analyzing the configuration for authenticating to GitHub Packages for each Programming Language’s setup and environment. You can find my conclusions in the .github/workflows folder and their results in this Repo’s Actions tab. Those workflow .xmls work well as example/template files too!

License

This work is free. You can redistribute it and/or modify it under the terms of the Do What The F*ck You Want To Public License, Version 2, as published by Sam Hocevar. See the LICENSE file for more details.