Last active
October 7, 2017 01:23
-
-
Save pete/ce9d09ef96d017922300e35c26d79099 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This gives you the ability to do | |
# git tag -a -m '1.0' 1.0 | |
# make upload-release-1.0 | |
# Written off the top of my head and not tested. | |
# Use at your own peril. | |
.PHONY: release | |
release: | |
mkdir -p release | |
.PHONY: release/HEAD.zip | |
release/%.zip: release | |
git archive --format=zip `basename $@ .zip` > $@ | |
.PHONY: upload-release-% | |
upload-release-%: release/%.zip | |
scp $< whatever-box:/srv/http/releases/wherever | |
or upload it by some other means |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment