Giter Club home page Giter Club logo

Comments (6)

JamesIves avatar JamesIves commented on May 9, 2024 1

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.

JamesIves avatar JamesIves commented on May 9, 2024

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.

ianwieds avatar ianwieds commented on May 9, 2024

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.

JamesIves avatar JamesIves commented on May 9, 2024

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.

ianwieds avatar ianwieds commented on May 9, 2024

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.

JamesIves avatar JamesIves commented on May 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.