Publish an Android library to GitHub Packages

How to publish your Android Library to GitHub Packages through Android Studio

Shems Eddine
Geek Culture

--

GitHub Packages allows you to publish and consume packages within your organisation or anyone else in the world.

GitHub Packages is available for free, for public packages and paid for private repositories. More information can be found on the following link: https://github.com/features/packages

If you’re looking to create a library and host it somewhere where you can easily share it. Whether that’s in your project, with your team or external clients, GitHub Packages is a simple solution that would allows you to do so.

I’m writing this article as I found the information online to be either out-of-date, or didn’t fully tick all the my requirements.

Step 1: Generate Personal Access Token

  • Login to GitHub
  • Go to Setting > Developer Settings > Personal Access Tokens > Generate new token
  • Make sure you select the following scopes:
  • Generate token

Step 2: Store your GitHub Personal Access Token details

  • Create a github.properties file…

--

--

Shems Eddine
Geek Culture

Azure Cloud Platform Expert | NodeJS & .NET Senior Consultant | Startup CTO in City of London