Questions tagged [github-pages-deploy-action]

45 questions
1
vote
1 answer

React-Router issue when deployed to Github Pages?

I'm having a little bit of trouble deploying a multipage React App (using React-Router V.6) on Github Pages. On my actual deployment build (here), whenever I go to a route (such as about or resume) and refresh, I get a 404. I assume this is due to…
1
vote
1 answer

Is it possible to deploy a non-master branch to Github Pages?

I have a React app I've created with create-react-app, which is deployed to Github Pages via the npm run deploy command using the following: "scripts": { "predeploy": "npm run build", "deploy": "gh-pages -d build", More specifically, I have…
1
vote
1 answer

How do I deploy an Angular 13 application to Git Hub Pages and not get Readme or 404

tldr; I think I need to add a github token. I have a token from github, but I have no idea how to implement it at the stage that I'm at. I am trying to deploy an angular 13 app to github pages. Right now, it is just the auto-generated app (I haven't…
HumanHickory
  • 464
  • 1
  • 6
  • 19
1
vote
0 answers

Can't redirect React routes on github pages

I have a react page that uses react-router. When I run the app locally, I am able to redirect the default path to a specific component. (In my particular case, the '/' redirects to the '/shop' component.)
Eric
  • 363
  • 2
  • 9
  • 24
1
vote
1 answer

Hugo website on github pages deployed through github actions is not working with custom theme

I have a github repository [1] (named "exo-cortex.github.io" that I want to use to make a static website on github). In it there are the hugo source files. There is also a git submodule [2] for the theme "archie", which I have forked, because I want…
1
vote
3 answers

How to add custom http headers for Hugo site

I am deploying a Hugo site through Github pages, but I want to add custom HTTP headers like X-Frame-Options, X-XSS-protections. However, I tried to add the below code to my config.yaml file as per their site's instruction. But it isn't working. The…
Nirzak
  • 43
  • 6
1
vote
1 answer

GitHub Pages error with workflow file environment variables

Does anyone know how to provide environment variables to a live site on GitHub Pages? I am trying to deploy my site to GitHub Pages and use environment variables that I have entered in the secrets setting on GitHub but am getting errors with my…
1
vote
1 answer

GitHub Pages build failure with Sapper

I've been struggling with this project for a while now and I've scrapped everything to try and just get the basics down with Sapper/Svelte and GitHub Pages deployment as I need this to run as a GitHub App. I have gone through multiple tutorials and…
1
vote
1 answer

github pages issue when using github actions and github-pages-deploy-action?

I have simple github repo where I host the content of my CV. I use hackmyresume to generate the index.html. I'm using Github Actions to run the npm build and it should publish the generated content to the gh-pages branch. My workflow file…
emeraldjava
  • 10,894
  • 26
  • 97
  • 170
0
votes
0 answers

Git hub - react portfolio not deployed

When I tried to publish my react project in git hub page all I could see is only URL and project is not deployed. Can somebody please help I tried deploying npm run deploy by changing keys in package json "homepage" , "predeploy" , "deploy".
0
votes
1 answer

JavaScript files not loading into GitHub pages site

I have a static site that is using Vite and Tailwind deployed on github pages. This is the repo. and here is the gh pages link: https://ethanrush.github.io/CurieNCo/ Locally, when I run npm run dev everything works and my site loads properly with…
0
votes
0 answers

Problem with Deploy page using tailwind CSS to GitHub Pages

I created a basic project with tailwind CSS, I can upload it to GitHub, but I don't know how to expose it to GitHub pages as .github.io/tailwind-project/ I am getting the contents of the README.md file instead of the index.html How to edit the…
0
votes
0 answers

Error while trying to load font family "packages/cupertino_icons/CupertinoIcons": SyntaxError: An invalid or illegal string was specified

I have an issue with github pages and flutter web. When i launch Github Pages i have this issue : Screenshot And i have a blank page. It's weird because it works well in local. Here is my Github Actions worflow : name: Deploy to GitHub Pages on: …
0
votes
0 answers

GitHub page failed to display html image file

I have created an HTML image file and I wanted to render it in my GitHub page. The image is stored here: https://github.com/WCRF/SysRev-Metan/blob/main/trial_fig.html. I tried to embed this image in my markdown document using this code.
user115916
  • 186
  • 11
0
votes
1 answer

Why my deployed react-app is showing a blank page

Why is that the react app I deployed via github pages is showing a blank page. I tried doing this already before (using the default react-homepage only for testing purposes) and it worked just fine. "homepage":…