Skip to content

Commit

Permalink
Add basic release building script
Browse files Browse the repository at this point in the history
  • Loading branch information
nashe committed Mar 22, 2018
1 parent e787e19 commit fa1c90d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bin/build_release.sh
@@ -0,0 +1,20 @@
#!/bin/bash

set -eu

tmp=$(mktemp -d -t moonmmon)

echo "[*] Building into $tmp..."

cd "$tmp"
git clone https://github.com/moonmoon/moonmoon.git --depth=1 --recursive -j8
cd moonmoon
composer install --no-suggest --prefer-dist --no-dev
git describe --abbrev=0 --tags > VERSION
find . -name .DS_Store -exec rm {} \;
rm -rf .git .github .travis.yml .gitignore .gitmodules docs/.git/
mkdir cache
cd ..
zip -r "moonmoon-$(cat moonmoon/VERSION).zip" .

echo "[*] Grab the archive: ${tmp}/moonmoon-$(cat moonmoon/VERSION).zip"

0 comments on commit fa1c90d

Please sign in to comment.