<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">
    <servers>
        <server>
            <id>github</id>
            <password>${GITHUB_TOKEN}</password>
        </server>
       <server>
            <id>ossrh</id>
            <username>softinstigate</username>
            <password>${OSSRH_PASSWORD}</password>
        </server>
    </servers>
</settings>
<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">
    <servers>
        <server>
            <id>github</id>
            <password>${GITHUB_TOKEN}</password>
        </server>
        <server>
            <id>ossrh</id>
            <username>softinstigate</username>
            <password>${OSSRH_PASSWORD}</password>
        </server>
    </servers>
    
    <profiles>
        <profile>
            <id>ossrh</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <gpg.executable>gpg</gpg.executable>
                <gpg.keyname>${GPG_KEY_NAME}</gpg.keyname>
                <gpg.passphrase>${GPG_PASSPHRASE}</gpg.passphrase>
            </properties>

        </profile>
    </profiles>
</settings>
Add the ossrh profile to deploy-setting.xml
Add the ossrh profile to deploy-setting.xml