Skip to content

Auto-deploy GitHub Pages on push to main - #3

Merged
Username-Matilda merged 1 commit into
mainfrom
claude/auto-deploy-on-merge
May 22, 2026
Merged

Auto-deploy GitHub Pages on push to main#3
Username-Matilda merged 1 commit into
mainfrom
claude/auto-deploy-on-merge

Conversation

@Username-Matilda

Copy link
Copy Markdown
Owner

Summary

The deploy workflow was previously workflow_dispatch only — meaning merging to main did not rebuild the live site. You had to remember to manually click "Run workflow" in the Actions tab after every merge.

This adds a push: branches: [main] trigger so that any merge to main automatically redeploys pauseai.uk.

The existing workflow_dispatch trigger is kept, so the manual re-run button still works as a fallback (useful if a deploy ever needs to be retried without a new commit).

Why this PR exists

Discovered this when PR #2 was merged but pauseai.uk/donate/ returned a redirect to / — the new files were on main but the site hadn't been rebuilt.

After merging

This PR's own merge will trigger the new behaviour, so it should redeploy itself and bring /donate/ live in the same run.


Generated by Claude Code

Previously the deploy workflow only ran on workflow_dispatch (manual
trigger from the Actions tab). Adding 'push: branches: [main]' so
merges to main automatically rebuild the live site.

The workflow_dispatch trigger is kept as a fallback for manual
re-runs.
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.

2 participants