-
Notifications
You must be signed in to change notification settings - Fork 18
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
Github Action to automatically publish PRs to GitHub Pages #52
Commits on Mar 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 90969b5 - Browse repository at this point
Copy the full SHA 90969b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e9a121 - Browse repository at this point
Copy the full SHA 3e9a121View commit details -
Remove actions/configure-pages
AFAIK, we don't need the metadata. https://github.com/actions/configure-pages/
Configuration menu - View commit details
-
Copy full SHA for 3585718 - Browse repository at this point
Copy the full SHA 3585718View commit details -
Force push (with lease) the gh-pages
Because we're not keeping the history of the gh-pages branch, we end up with a new commit every time. Github refuses that we push that branch because it doesn't match the history.
Configuration menu - View commit details
-
Copy full SHA for e8695dc - Browse repository at this point
Copy the full SHA e8695dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ba78f4 - Browse repository at this point
Copy the full SHA 8ba78f4View commit details -
Pass cname when creating the gh-pages
The docs [1] adds a CNAME file if you're publishing from a branch. But since the action wipes the `gh-pages` branch every time, I think the CNAME file will go away. ghp-import has the option to recreate it every time. [1]: https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-a-subdomain
Configuration menu - View commit details
-
Copy full SHA for 6ffa9a1 - Browse repository at this point
Copy the full SHA 6ffa9a1View commit details
Commits on Mar 7, 2024
-
ci: Use GitHub Actions to perform deployment
* Run on push events to 'main' as the default branch has been renamed from 'master'. * Add running the build job on pull_request events to allow testing builds of the website in advance. * Scope concurrency to the workflow level, which allows for per branch runs to not conflict. * Split the workflow into a build and deploy job. In the build job have the built website be uploaded as a run artifact. In the deploy job this artifact is then downloaded and and deployed to GitHub Pages. - For the deploy job, set the permissions to allow for the default GITHUB_TOKEN to perform the deployment. - Use the github-pages environment as required by GitHub Actions. - Run the deploy job on either: * push events to main (a merged PR) * workflow_dispatch events that happen on any branch, to allow for hotfixing
Configuration menu - View commit details
-
Copy full SHA for 9d6c2dd - Browse repository at this point
Copy the full SHA 9d6c2ddView commit details -
Merge pull request #53 from matthewfeickert/ci/use-github-actions-for…
…-deployment ci: Use GitHub Actions to perform deployment
Configuration menu - View commit details
-
Copy full SHA for 749a836 - Browse repository at this point
Copy the full SHA 749a836View commit details