JamesIves/github-pages-deploy-action

GitHub Pages re-building with Jekyll despite .nojekyll present

egouldo opened this issue · 1 comments

Describe the bug

Github pages bot re-building page with Jekyll (despite .nojekyll) being present after successful deployment using JamesIves
github-pages-deploy-action.

Reproduction Steps

Manually force rerun of workflow file https://github.com/egouldo/ManyEcoEvo/actions/workflows/pkgdown.yaml. Build will be successful, but will trigger pages-build-deployment GitHub bot action, which will fail, https://github.com/egouldo/ManyEcoEvo/actions/runs/6779117783.

Logs

  1. Initial workflow: https://github.com/egouldo/ManyEcoEvo/actions/runs/6779032303/job/18425450012 (successful)
  2. pages-build-deployment, triggered by 1: https://github.com/egouldo/ManyEcoEvo/actions/runs/6779117783

Workflow

https://github.com/egouldo/ManyEcoEvo/actions/workflows/pkgdown.yaml

Additional Comments

I have also created a discussion item at https://github.com/orgs/community/discussions/73729 in case the problem is not caused by this action.

I'm marking this as closed, thanks to community help at https://github.com/orgs/community/discussions/73729.

The problem was that while the contents of my main/docs/ are what I want deployed, because I have specified the target folder as docs, the contents are copied and set to root dir of gh-pages. I had my gh-pages settings for the repository set to deploy from gh-pages/docs/ when they needed to be deployed from gh-pages/root/