Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 541 Bytes

BUILD.md

File metadata and controls

30 lines (21 loc) · 541 Bytes

Building Elementum for release:

#!/bin/bash

set -e

TAG=$(git describe --tags)

export GH_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaa # This is an access token from Github
export PATH=$HOME/go/bin:/usr/lib/go-1.13/bin/:$PATH
export GOPATH=$HOME/go
unset GOROOT

git checkout master

rm -rf ~/go/src/github.com/elgatito/elementum
ln -s ~/workspace/elementum ~/go/src/github.com/elgatito/elementum
cd ~/go/src/github.com/elgatito/elementum

sudo -S true

make all

if [[ $TAG != *-* ]]
then
    # Push binaries to github
	./push-binaries.sh
fi