-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Hello,
I have some trouble making the deployment work from Github actions CI.
I'm using the following deployment steps in github actions,
...
- run: pnpx nuxthub@latest ensure
- run: pnpm build
- uses: nuxt-hub/action@v1
id: deploy
with:
project-key: <my-project-name>and the deploy (last step) fails with,
Error: Error while preparing deployment: "Server Error" - [POST] "https://admin.hub.nuxt.com/api/teams/rth/projects/akkel/production/deploy/prepare": 400 Server Error
The build step looks fine and last log lines show,
└─ dist/_worker.js/index.js (308 B) (201 B gzip)
Σ Total size: 2.72 MB (803 kB gzip)
[info] Generated dist/_routes.json
[info] Generated dist/_headers
[info] Generated dist/_redirects
[success] [nitro] You can preview this build using `npx nuxthub preview`
[success] [nitro] You can deploy this build using `npx nuxthub deploy`
I have,
- read https://hub.nuxt.com/docs/getting-started/deploy#usage-with-cicd
- checked that the github repo is linked with the NuxtHub account (and I see the NuxtHub app install in the repo)
- I have created a NUXT_HUB_USER_TOKEN on NuxtHub, passed it as a secret in github and passed it as an env variable to the deploy (though I'm not sure if it's really necessary)
- The docs says to define a
NUXT_HUB_PROJECT_KEYthough I imagine it's redundant with theproject-keyGH action parameter, so I have not defined it. - I have checked that the
project-keyin the deploy step matches NUXT_HUB_PROJECT_KEY on NuxtHub
Any suggestions on how to debug this would be appreciated. The error is not very explicit and it's not clear if I'm doing something wrong or if there is a bug server side.
Thanks!
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested