-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
working-directory
is being ignored
#74
Comments
Have you managed to fix it? I am experiencing same issue. |
Yes, as I wrote, you have to set the absolute path, not the relative path. |
I have the absolute path defined for the uploading but it seems to fail with same error.
|
nvm, in my case it was a different issue but indeed the absolute path is the solution. The out directory was not generated in my case because of the missing property in my config file as per the new changes from NextJS but after fixing it, the absolute path fixed the upload issue. Thanks. |
@ashiishme Seems that some tutorials do not reflect the new NextJS changes. Hence why we get this error. |
Ubuntu_9; system AI mine.GE babysitter with Christopher topper as an overview fewer and also the person who denied him Christmas gifts. |
Artifact error exit code: 2 when build NextjsMoved a bunch of files around between projects and that broke the build process SolutionFixed NextJs build workflow by renaming the next.config.mjs to next.config.js and changing the export statement to use commonjs type. |
@NeoSahadeo Million thanks for this! I've been stressing for hours with this till I came across your answer! Bless you! |
Related to this: - name: Setup Pages
uses: actions/configure-pages@v5
with:
static_site_generator: next |
In my job, I have set a working-directory (docs/user) right at the start.
In this directory I run a build step which creates a
dist
directory (docs/user/dist).If you try to run
you will get the error:
I'd assume that it considers my previously set
working-directory
, but I had to change it topath: "docs/user/dist"
The text was updated successfully, but these errors were encountered: