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

Make deployment workflow intelligently choose to deploy to main or staging #5

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

neonspectra
Copy link
Member

The way the deployment workflow worked originally is that it was hardcoded to deploy to a branch html, so if we wanted to test changes in staging we had to manually edit the workflow.

This PR adds a check to determine whether the branch we're working on is main or not. If it's main, deployments go to production. If it's not, deployments go to staging.

@neonspectra neonspectra merged commit 3b6006b into 1.1.0 Nov 16, 2023
2 checks passed
@neonspectra neonspectra deleted the neon/smart-branch-deploy branch November 16, 2023 22:07
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