Skip to content
Snippets Groups Projects
Unverified Commit dd02c8a8 authored by Eduardo Trujillo's avatar Eduardo Trujillo
Browse files

feat(travis): Use github-release

parent 4420f51f
No related branches found
No related tags found
No related merge requests found
......@@ -13,12 +13,3 @@ cache:
- "$HOME/.stack"
- ".stack-work"
after_success: bash contrib/travis/after-success.sh
deploy:
provider: releases
api_key:
secure: iTN17UHSZiayvQQoohu1JkrVcQmIGKnuMzWGr63Ujalmtzno1r6WAS1iVghAlpu42dRTHCjK6IRp0seFIUs7ltibyidsOvqacdPN+4nL0otqr9JocKnpMqEmPKI1QbU3j7kuiiY5hqwtvtuMaXeHUpFn2Y3VhTcqGcU1IUd1IUeKhMLTiYwbW+06HMyq9oTTRSW625miY3vzCntyIsj/tAeEwuNIHe2/rIeqrUqzKw6kNivhxfKNQP37flv4wKLAk/qCcPeTZ1sgyvoyoXiA/O7Vi7YBftsEq0M+N9Y0hCEnEPM8cIChsJZP+G8lT9YYHSu5Sxuat25j9mjZKrqSQ1ScWmdPIGzacH7qAxUtgESKoWcEttoRuH9hOnqitbL1PybmR8SQhqV1qo7v8WJVEYtrdC3xxp+VCob4sgZeQpimR3MNPGLZh3QWNf4Ol/WOQhZKIP4nbYHcAHM5xLRydiIcPiyeyauiWVoxZoKyxKm9qixoAxDUhhyI81PfxD5L3K6vciyoiUMvjYZdCSir4rSVWAcLHher5h7iQoI14myGBQiTo/Tck101oQF3ln1LRxK2oERVgQAE+9kZMxDSpWN3Hv1kJtYdhDET1Kdv4RwUGReCegMfgwMdsuOCBQ3lUYg4C/Q0PZT9vVBmLkYW/yFukmZ6oLOLDpHEryep1K0=
file: dist/shift
skip_cleanup: true
on:
repo: etcinit/shift
tags: true
......@@ -16,5 +16,19 @@ if [ $TRAVIS_PULL_REQUEST = 'false' ]; then
if ! test -z $TRAVIS_TAG; then
docker tag shift quay.io/etcinit/shift:${TRAVIS_TAG} \
&& docker push quay.io/etcinit/shift:${TRAVIS_TAG};
github-release edit \
--user etcinit \
--repo shift \
--tag ${TRAVIS_TAG} \
--name ${TRAVIS_TAG} \
--description "."
github-release upload \
--user etcinit \
--repo shift \
--tag ${TRAVIS_TAG} \
--name "shift-linux-amd64" \
--file dist/shift
fi
fi
......@@ -8,6 +8,7 @@ export PATH=$HOME/.local/bin:$PATH
curl -L https://www.stackage.org/stack/linux-x86_64 \
| tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
curl -L https://github.com/aktau/github-release/releases/download/v0.6.2/linux-amd64-github-release.tar.bz2 | tar -xj --wildcards --strip-components=3 -C ~/.local/bin '*/github-release'
stack setup
stack install hscolour
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment