GitHub-Pages-deploy | GitHub Action to deploy a static site | Continous Integration library
kandi X-RAY | GitHub-Pages-deploy Summary
kandi X-RAY | GitHub-Pages-deploy Summary
The default publishing source for user and organization sites is the root of the default branch for the repository.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of GitHub-Pages-deploy
GitHub-Pages-deploy Key Features
GitHub-Pages-deploy Examples and Code Snippets
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
email: username@domain.tld
build_dir: _site # optional
branch: website # opti
Community Discussions
Trending Discussions on GitHub-Pages-deploy
QUESTION
I am using this GitHub action https://github.com/JamesIves/fetch-api-data-action to fetch and save data fetched by an API:
this is my configuration for 2 actions, one to fetch the API and then build and deploy to save the .json fetching from the API
...ANSWER
Answered 2021-May-07 at 19:50You are using an old version of that action. Perhaps try moving to v4 which handles some of these parameters differently. If you are pushing back to the same repository you do not even need to pass a token.
Other than that, I see two possible things to check:
You reference branch
main
in the first action butmaster
in the second. Are these pointing to the same repository? If so, I'd think the branch names would be the same.With the v3 component, the docs for
ACCESS_TOKEN
kind of imply you need to be using a generated Personal Access Token that you have stored in the secrets. That is what I used when using this action although I was pushing to a different repository so the was a must anyway.
I moved to v4 quite a while ago though.
QUESTION
gh-pages deployment fails with next error: My repository failed job
...ANSWER
Answered 2021-Feb-19 at 19:36I misunderstood the issue message, the problem was not duplicating the problem was the missed inner path passed in FOLDER in gh-pages YML settings
There was a hint in BUILD step
And one more thing: do not forget to get and add to GH your personal-access-token
QUESTION
I think I have followed all the steps to deploy Blazor webassembly on GitHub Pages using GitHub Actions which I found from https://www.davideguida.com/how-to-deploy-blazor-webassembly-on-github-pages-using-github-actions/
But it failed at Deploy to Github Pages
step
- Set up job (Passed)
- Run actions/checkout@v2 (Passed)
- Setup .NET Core (Passed)
- Publish with dotnet (Passed)
- Deploy to Github Pages (Failed)
- Post Run actions/checkout@v2 (Passed)
- Complete job (Passed)
Here are the error descriptions
...ANSWER
Answered 2020-Jul-05 at 18:20You need to create a branch named development
from master
branch and set development
branch as default
branch in your repository settings.
This is because your gh-pages.yml
files has BASE_BRANCH: development
and BRANCH: master
QUESTION
I have deployed my Angular
website on GitHub
page, but I got a problem.
The below is my route
setting:
ANSWER
Answered 2020-Sep-12 at 15:55According to the Angular doc, you have to make a copy of index.html
and name it 404.html
.
- When the build is complete, make a copy of docs/index.html and name it docs/404.html.
bash ng build --prod --output-path docs --base-href//
QUESTION
I would like to setup my workflow to do the following:
- On any event (pull-request, push on any branches)
- Checkout code
- Build project
- Run tests
- Upload artifacts for other jobs
- Only when master is pushed
- Download artifacts from previous job
- Push GH-pages
- Only when a tag is pushed
- Download artifacts from previous job
- Create a release
- Upload artifacts to the release
In my .github/workflows
the on
directives applies to all jobs so it won't work in my case. On the other hand, the action/upload-artifact
only works within the same workflow.
What is the proper way to achieve the described workflow?
...ANSWER
Answered 2020-Aug-02 at 20:29You could add conditions to your steps and simply skip parts which aren't needed, see jobs..steps.if
. As for what to check, github
context is a goldmine of various data related to currently running workflow. For example
QUESTION
My goal: my react app has an environment variable to store a Github Personal_Access_Token
(later used in HTTP header for a fetch), then I will later deploy the app to Github page using Action Workflow.
What I tried: Given that pushing/exposing token as plain text to Githut is a violation, I would use Github secrets to avoid it. I found this post and tried to implement Github Workflow to access the secret then deploy.
...ANSWER
Answered 2020-Jun-07 at 04:53The problem is that React is purely a front-end framework. Everything that should be available directly in React is also available to your users to see. There's no way around this!
To really keep the secret private it has to be somewhere server side and not on the front-end. One way you could do this is make a "serverless function" (there are multiple generous free offers available on different services). Then you proxy through there, which basically means that:
- Your react front-end fetches from your serverless function without any secret.
- Your serverless function has the secret stored and does the same fetch on the actual service with secret.
- Your serverless function can now return the response it got back to your React front-end.
QUESTION
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 right now I've tried to match this example repo as close as possible but I'm getting an error on Build and Deploy.
The error I keep seeing when I look in the GitHub Actions tab is:
❌ Build and Deploy
Run JamesIves/github-pages-deploy-action@releases/v3
Checking configuration and starting deployment… 🚦
Deploying using Access Token… 🔑
Configuring git…
##[error]There was an error initializing the repository: The process '/usr/bin/git' failed with exit code 128 ❌
Deployment failed! ❌
Everything else passes. I'm new to Sapper/Svelte and somewhat new to GitHub Pages so forgive me if I'm missing something obvious.
EDIT:
My main.yml
file looks similar to the following:
ANSWER
Answered 2020-Jun-04 at 13:28Craig's comment pointed me in the right direction. The issue was with my access token's permissions. I needed to make sure I had full repo access in order for the app to build.
QUESTION
I'm trying to deploy my github pages using CD.
My CI seems to properly work with es modules as my webpack config(https://github.com/crrmacarse/crrmacarse.github.io/actions/runs/31859113) but when i try to do it on CD it crashes with this error:
Here is my yml config:
...ANSWER
Answered 2020-Jan-30 at 09:05I've fixed it with this commit:
It was probably either the removal of NODE_ENV or FIREBASE_TOKEN(Which doesn't exist)
QUESTION
So I get this error message for serveral github action runs:
...ANSWER
Answered 2020-Jan-16 at 17:19Apologies - this is an internal GitHub error message. We were rolling out a new deployment that had errors for some workflows, and I'm afraid that yours was one of the workflows affected.
We've rolled that deployment back - if you run your workflow now, the problem should be resolved. Apologies for the inconvenience!
QUESTION
I'm trying to publish Blazor to GitHub Pages using GitHub Actions.
I used this tutorial and this example, use GitHub Pages Deploy Action.
My main.yml:
...ANSWER
Answered 2019-Dec-26 at 16:54Deployment is working, but you need to follow 2 conditions:
When Action run first time, branch is created, but deployment failed. You need to run Action second time (new commitment) and it deployed to already created branch. All Action you can after will deploy without problem because branch exists. Not sure how to fix it, maybe add some delay between creating branch and deployment, but I don't need to worry about, because my problem is fixed.
To be able publish GitHub Pages from branch, branch name should be exactly gh-pages without any modifications.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GitHub-Pages-deploy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page