-
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 branch gh-pages began to be published in the /public directory, and not to the root 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 Webpack
on: workflow_dispatch
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Install 📥
run: npm ci
- name: Build 📦
run: npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages I want to place the files at the root of the branch and I believe that your action packs them |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
What are the contents of public/ ? Looks like you may be able to just change folder to dist/public |
Beta Was this translation helpful? Give feedback.
What are the contents of public/ ? Looks like you may be able to just change folder to dist/public