Skip to content

Instantly share code, notes, and snippets.

@pete
Last active October 7, 2017 01:23
Show Gist options
  • Save pete/ce9d09ef96d017922300e35c26d79099 to your computer and use it in GitHub Desktop.
Save pete/ce9d09ef96d017922300e35c26d79099 to your computer and use it in GitHub Desktop.
# 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