~nromdotcom/gemif

ad3a15e6adb2c688edf8312ba0821e130d06551b — Norm MacLennan 11 months ago dac43d2
Publish sample stories as artifacts for ease of deployment
1 files changed, 3 insertions(+), 0 deletions(-)

M scripts/release_version.sh
M scripts/release_version.sh => scripts/release_version.sh +3 -0
@@ 8,9 8,12 @@ if [ "$git_tag" != "" ]; then
    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

    tar -czvf bundled-stories.tar.gz stories

    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"
    curl -H"Authorization: token $SRHT_TOKEN" https://git.sr.ht/api/~nromdotcom/repos/gemif/artifacts/$git_tag -F "file=@./bundled-stories.tar.gz"
    echo ""
    echo "DONE!"
else