The bit before the (MavenPublication) is simply the name of the publication.
The bit inside the brackets is what gets published, GitHub is suggesting publishing everything built from Java, which may or may not be what you want, I recommend testing by publishing to mavenLocal or mcmodsrepo first.
All in all GitHub Packages should just be a maven that requires authentication