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

promote deployment to production if commited branch equals master or main #81

Closed
JohnDeved opened this issue Apr 20, 2021 · 3 comments
Closed

Comments

@JohnDeved
Copy link

is this already possible?
would it be possible to implement this?

@JohnDeved JohnDeved changed the title promote to production if commited branch equals master or main promote deployment to production if commited branch equals master or main Apr 20, 2021
@JohnDeved
Copy link
Author

#22 related

@JohnDeved
Copy link
Author

can be done by setting

vercel-args: ${{ github.ref == 'refs/heads/master' && '--prod' || '' }}

@hamsterbacke23
Copy link

Thanks for that. I think this should be in the docs, as it seems a sensible default.

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

No branches or pull requests

2 participants