Skip to content

Commit

Permalink
automatic release uploads to github in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzoml committed Oct 10, 2020
1 parent 4ec8c74 commit 60f93cb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@ release-osx:
release-win:
make publish-internal RID=win-x64

release: release-linux release-osx release-win
release: release-linux release-osx release-win

upload-release:
rm -rf ../releases
make release
./upload_helper.sh

install-linux: release-linux
#TODO: this is temporary; should be made portable
echo sudo "cd /opt && $(PWD)/$(RELEASE)linux-x64.zip"
9 changes: 9 additions & 0 deletions src/upload_helper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

version=$(cat VERSION.txt)
tag="v$version"
files=../releases/VoxLogicA_$version_*.zip
echo $files
assets=$(printf -- "-a %s\n" $files)

hub release create $assets $tag

0 comments on commit 60f93cb

Please sign in to comment.