peaceiris / actions-gh-pages

GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.
https://github.com/marketplace/actions/github-pages-action
MIT License
4.61k stars 366 forks source link

support: The depoly step is skipped and gh-pages doesn't generated #924

Closed quanshengwu closed 1 year ago

quanshengwu commented 1 year ago

Checklist

Describe your question

Dear Sir/Madame,

Thanks for developing such wonderful tools.

I am using it together with Sphinx to generate gh-pages for my code. Now I meet the following problem. image Everything works fine except the Deploy step is skipped and the gh-pages branch doesn't generate.

Firstly, as a test, I followed the steps in https://coderefinery.github.io/documentation/gh_workflow/ and build a test-sphinx code (https://github.com/quanshengwu/test-sphinx). Everything works fine. The gh-pages branch was generated successfully.

Then I use modified the workflow a little bit to fit my repository, it just doesn't generate the right gh-pages branch.

Any help would be appreciated.

Best regards, QuanSheng Wu

Relevant links

Public repository:https://github.com/quanshengwu/wannier_tools
YAML config:
YAML workflow: https://github.com/quanshengwu/wannier_tools/blob/master/.github/workflows/sphinx.yaml

Relevant log output

image

https://github.com/quanshengwu/wannier_tools/actions/runs/5281530268/jobs/9555239351

Additional context.

No response

peaceiris commented 1 year ago

Please check this filter.

- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
quanshengwu commented 1 year ago

@peaceiris Thank you so so much for you quick reply. It works just great!

github-actions[bot] commented 1 year ago

This issue has been LOCKED because of it being resolved!

The issue has been fixed and is therefore considered resolved. If you still encounter this or it has changed, open a new issue instead of responding to solved ones.

Log | Bot Usage