Skip to content

ci: Build and deploy the website from main - #222

Draft
olafmersmann wants to merge 1 commit into
mainfrom
feat/ci-pages-deploy-no-commit
Draft

olafmersmann wants to merge 1 commit into
mainfrom
feat/ci-pages-deploy-no-commit

Conversation

@olafmersmann

Copy link
Copy Markdown
Collaborator

Instead of committing HTML in PRs, rebuild the website on merge into main only.

Regenerating the HTML in pull requests needs a write token, so it only worked for branches in this repository, not for forks. Making it work for forks (pull_request_target) would run untrusted PR code with write access. Now PRs only check that the site builds, and only main deploys it. This also eliminates the extra commits introduced by each PR and the possible merge conflicts caused by the divergent html files.

… in PRs

Regenerating the HTML in pull requests needs a write token, so it only
worked for branches in this repository, not for forks. Making it work for
forks (pull_request_target) would run untrusted PR code with write access.
Now PRs only check that the site builds, and only main deploys it.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant