hugopl / gtk4.cr

GTK4 bindings for Crystal
https://hugopl.github.io/gtk4.cr/
MIT License
102 stars 8 forks source link

Orphan gh-pages branch on docs build #38

Closed GeopJr closed 2 years ago

GeopJr commented 2 years ago

This PR enables the force_orphan option on the gh-pages action. It will clear commit history on push (see: https://github.com/geopjr-forks/gtk4.cr/tree/gh-pages)

I also removed the destination_dir: ./docs as there's no reason to have an old copy of the repo there. (You might have to change this setting to / if it's /docs): gh pages settings page with the following text:
Branch
Your GitHub Pages site is currently being built from the gh-pages branch. Learn more.
Learn how to add a Jekyll theme to your site.
the Directory dropdown is open and the cursor is hovering the / root option. Below it there is the /docs option.

Results:

before: Receiving objects: 100% (46671/46671), 89.76 MiB | 794.00 KiB/s, done. after: Receiving objects: 100% (2942/2942), 4.97 MiB | 578.00 KiB/s, done.

fixes: #37 (?)