Using github actions to publish to github package repository #25916
-
I’m trying to use this workflow to package a release to github package repository. But currently when I run it the tests pass but I get a 401. Any ideas?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Did you get 401 message in step " push to github packages with maven" ? When you try to deploy maven package in your workflow, you could use a specific settings.xml including your personal access token . You could store the PAT in secrets and use it as an environment variable value when run mvn deploy command. Please see my example here:
In my repo, I have a settings.xml in the root . In servers section, I set ${env.PackagePAT} as the password. |
Beta Was this translation helpful? Give feedback.
-
@jtratner How are things going now? Please check my previous reply, could specific settings.xml and pass PAT to it work for you ? |
Beta Was this translation helpful? Give feedback.
-
Hi @yanjingzhu, |
Beta Was this translation helpful? Give feedback.
Did you get 401 message in step " push to github packages with maven" ?
When you try to deploy maven package in your workflow, you could use a specific settings.xml including your personal access token . You could store the PAT in secrets and use it as an environment variable value when run mvn deploy command.
Please see my example here:
In my repo, I have a settings.xml in the root . In servers section, I set ${env.PackagePAT} as the password.