GitHub Packages Maven Upload - Error code 500 intermittently

I’m trying to push an artefact to to a GitHub Packages Maven Repository, but this only works intermittently.

This did used to work, and appears to affect all artefacts we are pushing - but does work sometimes.

Does anyone have any ideas, please?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project myproject: Failed to deploy artifacts: Could not transfer artifact com.my:myproject:jar:5.9-20211008.124045-19 from/to github (https://maven.pkg.github.com/myorganisation/maven-repository): Failed to transfer https://maven.pkg.github.com/myorganisation/maven-repository/com/my/myproject/5.9-SNAPSHOT/myproject-5.9-20211008.124045-19.jar. Error code 500, -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project myproject: Failed to deploy artifacts: Could not transfer artifact com.my:myproject:jar:5.9-20211008.124045-19 from/to github (https://maven.pkg.github.com/myorganisation/maven-repository): Failed to transfer https://maven.pkg.github.com/myorganisation/maven-repository/com/my/myproject/5.9-SNAPSHOT/myproject-5.9-20211008.124045-19.jar. Error code 500, 
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact com.my:myproject:jar:5.9-20211008.124045-19 from/to github (https://maven.pkg.github.com/myorganisation/maven-repository): Failed to transfer https://maven.pkg.github.com/myorganisation/maven-repository/com/my/myproject/5.9-SNAPSHOT/myproject-5.9-20211008.124045-19.jar. Error code 500, 
	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:193)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
	... 20 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.my:myproject:jar:5.9-20211008.124045-19 from/to github (https://maven.pkg.github.com/myorganisation/maven-repository): Failed to transfer https://maven.pkg.github.com/myorganisation/maven-repository/com/my/myproject/5.9-SNAPSHOT/myproject-5.9-20211008.124045-19.jar. Error code 500, 
	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:146)
	at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167)
	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:157)
	... 22 more
Caused by: org.eclipse.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.my:myproject:jar:5.9-20211008.124045-19 from/to github (https://maven.pkg.github.com/myorganisation/maven-repository): Failed to transfer https://maven.pkg.github.com/myorganisation/maven-repository/com/my/myproject/5.9-SNAPSHOT/myproject-5.9-20211008.124045-19.jar. Error code 500, 
	at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:302)
	at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:213)
	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:386)
	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:142)
	... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact com.my:myproject:jar:5.9-20211008.124045-19 from/to github (https://maven.pkg.github.com/myorganisation/maven-repository): Failed to transfer https://maven.pkg.github.com/myorganisation/maven-repository/com/my/myproject/5.9-SNAPSHOT/myproject-5.9-20211008.124045-19.jar. Error code 500, 
	at io.takari.aether.connector.AetherRepositoryConnector$2.wrap(AetherRepositoryConnector.java:889)
	at io.takari.aether.connector.AetherRepositoryConnector$2.wrap(AetherRepositoryConnector.java:1)
	at io.takari.aether.connector.AetherRepositoryConnector$PutTask.flush(AetherRepositoryConnector.java:732)
	at io.takari.aether.connector.AetherRepositoryConnector.put(AetherRepositoryConnector.java:373)
	at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:295)
	... 27 more
Caused by: io.takari.aether.connector.TransferException: Failed to transfer https://maven.pkg.github.com/myorganisation/maven-repository/com/my/myproject/5.9-SNAPSHOT/myproject-5.9-20211008.124045-19.jar. Error code 500, 
	at io.takari.aether.connector.AetherRepositoryConnector.handleResponseCode(AetherRepositoryConnector.java:401)
	at io.takari.aether.connector.AetherRepositoryConnector.access$8(AetherRepositoryConnector.java:391)
	at io.takari.aether.connector.AetherRepositoryConnector$PutTask.run(AetherRepositoryConnector.java:703)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)