Comments (6)
Taking another look at this, it looks like you've got the deploy branch configured to master
and you're deploying .
which will end up being the root directory, which means the error makes sense as you're technically trying to deploy everything that's already in the master branch to the master branch.
Your branch is up-to-date with 'origin/master'.
If you're trying to push your changes to the gh-pages
branch you'll need to change the BRANCH
variable to gh-pages
. Using the workflow example I provided in my last comment I'm deploying the build
folder (which gets generated from the build script) to the gh-pages
branch once it's built.
Let me know if that helps! π
Additionally I've also pushed up a new version of the README using the CICD format if you'd like to use that instead. GitHub will be deprecating the HCL format in September so it's probably better to make the switch sooner rather than later.
from github-pages-deploy-action.
Outside of the workflow can you interface with git using the access token? Just to verify this isn't a permission issue can you try running a command with it using the following formatting.
https://${ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
Let me know if that works or not. I'm guessing there's likely some changes that need to be made to make this action work with the new CICD workflow.
from github-pages-deploy-action.
I think the original issue was in fact with the permissions on the token, thanks for pointing me in the right direction with that. I re-added a token with more permissions but now I'm getting a different error:
git is already the newest version (1:2.11.0-3+deb9u4).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Reinitialized existing Git repository in /github/workspace/.git/
Switched to a new branch 'master'
Branch master set up to track remote branch master from origin.
Running build scripts...
Deploying to GitHub...
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
##[error]Docker run failed with exit code 1
Getting this error even when I'm definitely committing new files. Any ideas? Thanks in advance.
from github-pages-deploy-action.
Yeah, this is likely something to do with the CICD yml workflows being slightly different. I can see about pushing up a fix for this soon.
from github-pages-deploy-action.
I don't know if that's for sure the issue, however. I just tried making a brand new repo and using the example code from the README to create a new main.workflow
file with the old Actions syntax and I'm still getting the same error. I must be doing something wrong? Is there an example repo I can clone and try this with to rule out any mistakes on my part?
from github-pages-deploy-action.
i've been using it in a personal repo of mine to test; https://github.com/JamesIves/reddit-viewer/blob/master/.github/main.workflow
from github-pages-deploy-action.
Related Issues (20)
- Commit fails with "process '/usr/bin/git' failed with exit code 128" HOT 3
- Error: You must provide the action with a folder to deploy.
- This project is now deprecated
- GitHub Actions `set-output` command is deprecated and will be disabled soon HOT 2
- Reporting a vulnerability HOT 1
- `token` not being used sometimes HOT 2
- fatal: A branch named 'main' already exists. HOT 7
- Pushed file asyncapi.html gets renamed to index.html HOT 3
- Can't push folder in project HOT 2
- remote: Permission denied to github-actions[bot] HOT 1
- I have this problem, everyone can help me ? This is for a react project HOT 1
- Git config not found for centos:7 HOT 2
- Action succeeds even when push fails HOT 1
- GitHub Pages re-building with Jekyll despite .nojekyll present HOT 1
- A file is missing or not transferred to github pages HOT 5
- The directory you're trying to deploy named /home/runner/work/RivioxTweaks/RivioxTweaks/dist doesn't exist. HOT 1
- There is nothing to commit. Exiting early⦠HOT 1
- The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 β HOT 3
- fatal: Authentication failed HOT 1
- Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 β HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-pages-deploy-action.