Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 1

Unable to push to GitHub Packages (400 Bad Request)

Hi all,

 

I'm trying to configure GitHub Actions to work with GitHub Packages.

 

I've taken Gradle configuration from https://help.github.com/en/articles/configuring-gradle-for-use-with-github-package-registry#authenti...

I've configured env variables as in tutorial, there is step in yml:

- name: Publish with Gradle
run: ./gradlew publish
env:
GPR_USER: augur
GPR_API_KEY: ${{ secrets.GITHUB_TOKEN }}

 
But I'm keep getting

Execution failed for task ':publishGprPublicationToGitHubPackagesRepository'.


> Failed to publish publication 'gpr' to repository 'GitHubPackages' 

> Task :publishGprPublicationToGitHubPackagesRepository FAILED

... 

maven-metadata.xml'. Received status code 400 from server: Bad Request


Similar topic:
https://github.community/t5/GitHub-API-Development-and/GitHub-Package-Registry-NuGet-400-Bad-Request...
There, @EoflaOE  said that problem was in credentials, but in the last post @sappenin told that recently he started getting 400 regardless of credentials.

May it be some global issue?