Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Publishing to a directory /public#1518

AnsweredbyJamesIves
frunkers asked this question inQ&A
Discussion options

Due to the transition GitHub Actions of node version 16 to version 20, it was necessary to change version actions/checkout from 3 to 4. And the code in the branchgh-pages began to be published in the/public directory, and not to theroot of the site. Because of this, the file is actions/checkout is not found and instead of the site I get a 404 error.

name:Build Webpackon:workflow_dispatchpermissions:contents:writejobs:build-and-deploy:runs-on:ubuntu-lateststeps:      -name:Checkout 🛎️uses:actions/checkout@v4.1.1      -name:Install 📥run:npm ci      -name:Build 📦run:npm run build      -name:Deploy 🚀uses:JamesIves/github-pages-deploy-action@v4with:folder:distbranch:gh-pages

Before changes version
image

After changes version
image

I want to place the files at the root of the branch and I believe that your action packs them

You must be logged in to vote

What are the contents of public/ ? Looks like you may be able to just change folder to dist/public

Replies: 1 comment 2 replies

Comment options

What are the contents of public/ ? Looks like you may be able to just change folder to dist/public

You must be logged in to vote
2 replies
@frunkers
Comment options

image

@frunkers
Comment options

THANK YOUUUUUUUU. Thank God.

Answer selected byfrunkers
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@frunkers@JamesIves

[8]ページ先頭

©2009-2025 Movatter.jp