Skip to content

feat: Adds post-build hook. #96

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

Merged
merged 3 commits into from
Feb 14, 2025
Merged

feat: Adds post-build hook. #96

merged 3 commits into from
Feb 14, 2025

Conversation

willum070
Copy link
Collaborator

This change would make Rube Goldberg proud! It does the following:

  1. When a PR is merged, release workflow is triggered. It runs all the things including build-prod.
  2. The build-prod script triggers a git hook (post-build.sh).
  3. The post-build hook checks out dist, adds, creates a commit, and pushes to a dist branch on origin.
  4. The dist-pr.yml workflow is triggered only on pushes to dist. If the actor is github-actions[bot], it creates, approves, and merges a PR with all of /dist changes, then deletes the branch.

Adds missing license header.
Adds missing license header.
@willum070 willum070 merged commit 805e618 into main Feb 14, 2025
6 checks passed
@willum070 willum070 deleted the post-build-hook branch February 14, 2025 18:56
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