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

Deploy to prod on tag creation #1064

Merged
merged 1 commit into from
Sep 23, 2023
Merged

Conversation

abandoned-prototype
Copy link
Collaborator

Fixes issue

#1030

Description of Changes

Previously a push on the main branch triggered a deploy to prod. In the future, creating a release will trigger that push.
The change is already built in a way that we can delete the main branch and rename the develop branch to main as a next step (once we confirmed everything works).

Notes for Deployment

I was only able to partially test this, so we will see how it goes.

Tests and linting

  • This branch is up-to-date with the develop branch.
  • pytest passes on my local development environment.
  • pre-commit passes on my local development environment.

This replaces the previous workflow, where a push
to the main branch was needed.
@michplunkett michplunkett linked an issue Sep 22, 2023 that may be closed by this pull request
push:
branches:
- develop
- main
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it may be worth taking off main if we are going to scrap it at some point.

@michplunkett michplunkett changed the title Fix #1030: Deploy to prod on release. Deploy to prod on tag creation Sep 22, 2023
Copy link
Collaborator

@michplunkett michplunkett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there'd be some value to removing the main branch mention, but it's not worth holding back on the merge.

Otherwise, I'm very excited for this to happen!

@abandoned-prototype
Copy link
Collaborator Author

Leaving both main and develop for now allows us to remove the main branch and rename develop to main if we want at a later point. (And then clean up this workflow)

@abandoned-prototype abandoned-prototype merged commit 24a7605 into develop Sep 23, 2023
2 checks passed
@abandoned-prototype abandoned-prototype deleted the new_deploy_workflow branch September 23, 2023 04:04
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.

Create a simpler deployment process
2 participants