Skip to content

Commit

Permalink
Merge pull request #34 from teloscube/fkoksal/issue-33
Browse files Browse the repository at this point in the history
Upload statically compiled executable to release
  • Loading branch information
fkoksal authored Nov 22, 2022
2 parents b0a7221 + b66dde4 commit 76a081b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,23 @@ git commit -m "chore(release): ${_version}"
_log "Tagging version..."
git tag -a -m "Release ${_version}" "${_version}"

_log "Build statically linked executable..."
_outfile_raw="$(./compile-static.sh)"

_log "Copying and renaming statically linked executable (${_outfile_raw})..."
_outfile="decafcli-Linux-x86_64-static"
cp "${_outfile_raw}" "${_outfile}"

_log "Pushing changes to remote..."
git push --follow-tags origin main

_log "Creating the release..."
gh release create "${_version}" --title "v${_version}" --generate-notes

_log "Uploading release artifacts..."
gh release upload "${_version}" "${_outfile}"

_log "Cleaning up release artifacts..."
rm "${_outfile}"

_log "Finished!"

0 comments on commit 76a081b

Please sign in to comment.