Skip to content

Instantly share code, notes, and snippets.

@drscream
Created September 8, 2017 13:53
Show Gist options
  • Save drscream/6820a1863403d2ca7675cc57a4cdb0f2 to your computer and use it in GitHub Desktop.
Save drscream/6820a1863403d2ca7675cc57a4cdb0f2 to your computer and use it in GitHub Desktop.
Ugly 1 minute workaround
#!/usr/bin/env
# Minimal wrapper script for dev releases in deploy-zone
last=$(git log --format="%h" -n 1)
if [[ -e manifest.json ]]; then
cp manifest.json manifest.json.bak
jq '.version = .version + "-'$last'"' manifest.json.bak > manifest.json
dz build
mv manifest.json.bak manifest.json
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment