github-settings.xml (39 lines of code) (raw):

<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 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <activeProfiles> <activeProfile>github</activeProfile> <activeProfile>release</activeProfile> </activeProfiles> <profiles> <profile> <id>github</id> <repositories> <repository> <id>central</id> <url>https://repo1.maven.org/maven2</url> </repository> <repository> <id>github</id> <url>https://maven.pkg.github.com/OWNER/*</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <properties> <gpg.executable>gpg</gpg.executable> <gpg.keyname>${env.GPG_KEY_NAME}</gpg.keyname> <gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase> </properties> </profile> </profiles> <servers> <server> <id>github</id> <username>${env.GITHUB_USER}</username> <password>${env.GITHUB_PASSWORD}</password> </server> </servers> </settings>