If you never had to setup it before you may need to setup a settings.xml in your ~/.m2/ folder.
In this file precise at least this:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>pixplicity-sharp</id>
<username>GITHUB_USERNAME</username>
<password>GITHUB_TOKEN</password>
</server>
</servers>
</settings>
In the next lines X.Y.Z will represent a version number like 1.2.3
You need two things:
- Generate the new version folder and files:
com/pixplicity/sharp/library/X.Y.Z/library-X.Y.Z.aarcom/pixplicity/sharp/library/X.Y.Z/library-X.Y.Z.pom
- Now you can upload it by using the command below, replace the
PATH_TO_YOUR_LOCAL_REPOandX.Y.Z:
mvn deploy:deploy-file -Durl=https://maven.pkg.github.com/patrontech/pixplicity-sharp -DrepositoryId=pixplicity-sharp -Dfile=PATH_TO_YOUR_LOCAL_REPO/pixplicity-sharp/com/pixplicity/sharp/library/X.Y.Z/library-X.Y.Z.aar -DpomFile=PATH_TO_YOUR_LOCAL_REPO/pixplicity-sharp/com/pixplicity/sharp/library/X.Y.Z/library-X.Y.Z.pom -X
You are done!