Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying with github not working after first commit, getting "there is nothing to commit" #1068

Open
hshackle opened this issue Dec 19, 2023 · 0 comments

Comments

@hshackle
Copy link

I'm trying to get this set up with my Github account. I set up my website locally and push it to the main branch on Github. Everything deploys as expected, the gh-pages branch shows up, and I'm able to view the website. Now I make some edits to the website and push to main. I get a green checkmark but nothing changes on my website. Looking at the logs under build-and-deploy seems to show the issue:


GitHub Pages Deploy Action 🚀

    🚀 Getting Started Guide: https://github.com/marketplace/actions/deploy-to-github-pages
    ❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
    🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues

    📣 Maintained by James Ives: https://jamesiv.es/
    💖 Support: https://github.com/sponsors/JamesIves
Checking configuration and starting deployment… 🚦
Deploying using GitHub Token… 🔑
Configuring git…
/usr/bin/git init
Reinitialized existing Git repository in /home/runner/work/hshackle.github.io/hshackle.github.io/.git/
/usr/bin/git config user.name hshackle
/usr/bin/git config user.email [email protected]
/usr/bin/git remote rm origin
/usr/bin/git remote add origin ***github.com/hshackle/hshackle.github.io.git
/usr/bin/git fetch --no-recurse-submodules
From https://github.com/hshackle/hshackle.github.io
 * [new branch]      gh-pages   -> origin/gh-pages
 * [new branch]      main       -> origin/main
Git configured… 🔧
Starting to commit changes…
/usr/bin/git ls-remote --heads ***github.com/hshackle/hshackle.github.io.git gh-pages | wc -l
8fb3cf2e419d0772b2d4a31018428fc89779a14f	refs/heads/gh-pages
/usr/bin/git checkout --progress --force ac4eac188c9f7dcab516d5171bf138f4ca48f5bc
Note: switching to 'ac4eac188c9f7dcab516d5171bf138f4ca48f5bc'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at ac4eac1 ugh
/usr/bin/git fetch ***github.com/hshackle/hshackle.github.io.git
From https://github.com/hshackle/hshackle.github.io
 * branch            HEAD       -> FETCH_HEAD
/usr/bin/git worktree add --checkout github-pages-deploy-action-temp-deployment-folder origin/gh-pages
Preparing worktree (detached HEAD 8fb3cf2)
HEAD is now at 8fb3cf2 Deploying to gh-pages from  @ b3d7e79c745f895a21020ad88087cc4fec7eb88f 🚀
/usr/bin/rsync -q -av --checksum --progress /home/runner/work/hshackle.github.io/hshackle.github.io/__site/. github-pages-deploy-action-temp-deployment-folder --delete --exclude CNAME --exclude .nojekyll --exclude .ssh --exclude .git --exclude .github
/usr/bin/git status --porcelain
Running post deployment cleanup jobs… 🗑️
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
There is nothing to commit. Exiting early… 📭

Somehow the changes are not being registered and not being pushed to gh-pages? I'm not sure what's going on here. Full logs here: https://pastebin.com/uaUx3Lz3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant