Replies: 2 comments 1 reply
-
I assume the URL path here is just misspelled and this is not actually the solution? It looks like you are not only deploying your Pages site from the I'm basing this assumption on: # Runs on pushes targeting the default branch
push:
branches: ['gh-pages']That's fine, you can use What's not fine is this bit: - name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4This is the artifact-based worflow that can be turned on in your Pages settings, under 'Source' in the section 'Build & Deployment', and option is stupidly called 'GitHub Actions' - I've complained to GitHub about this before, but no response from them. The PR preview action only works from the 'deploy from a branch' source. I'm assuming you have this checked, because your preview deployment works, and your regular one doesn't. To make your regular deployment work, you need to make it also use a branch-based workflow. In your case, with no other changes, that would mean replacing the two steps I highlighted with something that puts the result of your build into the That seems like a not-ideal situation to me, which is why people normally do deployments on a separate branch (with their |
Beta Was this translation helpful? Give feedback.
-
|
Resolved - I opted to keep main for my project files and gh-pages strictly for build and deploy, patched the workflow to reflect this change and this resolved my issue - so gh-pages pretty much just has build files in it now, whereas before I was using it for the project. For anyone reading this - I can recommend seperating them out, that alone resolved it for me 😅 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi - I am struggling to identify why my pr previews are succeeding but my root site fails.

PR Preview: https://xxxx.github.io/design-system/pr-preview/pr-11/ (renders everything as expected)
Root site: https://xxxx.github.io/ldesign-system (white screen ive attached error log)
Pipeline runs:

vite.config.ts:
Static Deploy workflow:
Beta Was this translation helpful? Give feedback.
All reactions