Files

10 lines
284 B
Makefile

publish-to-staging:
@current_branch=$$(git rev-parse --abbrev-ref HEAD); \
git branch -D staging 2>/dev/null; \
git checkout -b staging; \
git merge $$current_branch && \
git push -f origin staging && \
git checkout $$current_branch; \
echo Pushed $$current_branch to staging