[semver:patch] allow tag deployments by using full path refs #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This edit is just more verbose about which reference is being pushed and to which remote
Ref: https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-push.html
The added benefit of this edit is that we can now deploy both branches and tags based on the definition of the
parameters.branch
ex:
refs/heads/master
will always deploy the master branch$CIRCLE_BRANCH
is the same default behavior as nowrefs/heads/$CIRCLE_BRANCH
is the same default behavior now (same as the previous version)refs/tags/$CIRCLE_TAG
is a "hacky" way for deploying tags to HerokuFixes: #7
Safer than #8
As when a new repo is created on heroku, the command used in
#8 would fail with the following error
Backward compatible but the naming of the variable could be changed in a later release to indicate that it's taking a reference path to deploy on the
refs/heads/main
heroku branch