Skip to content
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

Different branch for deployments #6

Open
MurtadhaInit opened this issue Nov 29, 2024 · 0 comments
Open

Different branch for deployments #6

MurtadhaInit opened this issue Nov 29, 2024 · 0 comments
Assignees
Labels
idea A floating idea related to the project, either to extend it or to enhance it

Comments

@MurtadhaInit
Copy link
Owner

MurtadhaInit commented Nov 29, 2024

Create a "deploy" branch that only includes the .dist directory. Every commit to main triggers a workflow that builds the Astro project and commits the built site (the content from .dist) to the branch "deploy".

  1. This way we can have a separate history of actual builds.
  2. That "deploy" branch can be the one used to deploy the site elsewhere (when moving away from GitHub Pages).
@MurtadhaInit MurtadhaInit added the idea A floating idea related to the project, either to extend it or to enhance it label Nov 29, 2024
@MurtadhaInit MurtadhaInit self-assigned this Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea A floating idea related to the project, either to extend it or to enhance it
Projects
None yet
Development

No branches or pull requests

1 participant