~nromdotcom/gemif

3d2051d6932a7016fd66c3d5e8248115dc09d686 — Norm MacLennan 11 months ago bd561ac
Version artifacts so they can be released automatically
1 files changed, 7 insertions(+), 3 deletions(-)

M scripts/release_version.sh
M scripts/release_version.sh => scripts/release_version.sh +7 -3
@@ 4,9 4,13 @@ set -e
git_tag=`git describe --exact-match 2> /dev/null || echo ""`
if [ "$git_tag" != "" ]; then
    echo "Releasing $git_tag!"
    curl -H"Authorization: token $SRHT_TOKEN" https://git.sr.ht/api/~nromdotcom/repos/gemif/artifacts/$git_tag -F "file=@./bin/gemif-darwin-amd64.tar.gz"
    curl -H"Authorization: token $SRHT_TOKEN" https://git.sr.ht/api/~nromdotcom/repos/gemif/artifacts/$git_tag -F "file=@./bin/gemif-linux-amd64.tar.gz"
    curl -H"Authorization: token $SRHT_TOKEN" https://git.sr.ht/api/~nromdotcom/repos/gemif/artifacts/$git_tag -F "file=@./bin/gemif-linux-arm64.tar.gz"
    mv ./bin/gemif-darwin-amd64.tar.gz ./bin/gemif-darwin-amd64-$git_tag.tar.gz
    mv ./bin/gemif-linux-amd64.tar.gz ./bin/gemif-linux-amd64-$git_tag.tar.gz
    mv ./bin/gemif-linux-arm64.tar.gz ./bin/gemif-linux-arm64-$git_tag.tar.gz

    curl -H"Authorization: token $SRHT_TOKEN" https://git.sr.ht/api/~nromdotcom/repos/gemif/artifacts/$git_tag -F "file=@./bin/gemif-darwin-amd64-$git_tag.tar.gz"
    curl -H"Authorization: token $SRHT_TOKEN" https://git.sr.ht/api/~nromdotcom/repos/gemif/artifacts/$git_tag -F "file=@./bin/gemif-linux-amd64-$git_tag.tar.gz"
    curl -H"Authorization: token $SRHT_TOKEN" https://git.sr.ht/api/~nromdotcom/repos/gemif/artifacts/$git_tag -F "file=@./bin/gemif-linux-arm64-$git_tag.tar.gz"
    echo ""
    echo "DONE!"
else