From a41862d799d39dc9cb0c17051e924ee9b2a241a9 Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Wed, 9 Oct 2019 00:35:30 +0100 Subject: [PATCH 1/2] Travis release: Read API key from variable secure key was probably removed. Read from travis ci env variable instead --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 576b31ff..206490f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,8 +46,9 @@ deploy: # - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new # - Encrypt it: `travis encrypt 0123456789012345678901234567890123456789 # - Paste the output down here - api_key: - secure: UlU73Td7Bkb2N88ws4YGLWR+4U0IMgiou9QQtMnmpouJFjeUNxtLSPMPODVXP7zq4sKt5HR5B3fX9MW4mKm351fvnQEoihETn06pKiXGnY//SlTPTt67MX9ZOYmd9ohJReMDOZDgqhnGLxfymycGtsLAmdjDZnAl+IMqgg0FMyVFj9Cl9aKxnn12lxQyX4zabHKk8TUKD3By8ZoEUnJMHt3gEtOmbDgS4brcTPeHCzqnYFw73LEnkqvz+JP0XwauJY7Cf8lminKm/klmjCkQji8T9SHI52v1g0Fxpx0ucp2o3vulQrLHXaHvZ6Fr7J0cSXXzaFF3rrGLt4t4jU/+9TZm1+n5k5XuPW4x4NTCC9NmIj/z0/z41t82E9qZhzhtm2Jdsg6H2tNk+C774TYqcmR6GCvfRadfjRp3cA5dh0UwDVjH2MJFxlHDVkl6la0mVVRsCGF3oBKZVk0BDl1womfnmI46o/uU+gLknHN6Ed6PHHPPYDViWd3VKdmHKT7XrkMMUF6HjZUtla689DWIOWZSiV++1dVPcl/1TV+6tTmN4bBtPcLuX7SHRuLp2PI2kATvRMECsa7gZRypW4jKpVn7b2yetX9TVI3i1zR5zkQJ3dPg8sATvYPL53aKH/WsqUg4rzoAlbk9so+++R4bQY69LhV3B511B7EAynoZFdM +# api_key: +# secure: UlU73Td7Bkb2N88ws4YGLWR+4U0IMgiou9QQtMnmpouJFjeUNxtLSPMPODVXP7zq4sKt5HR5B3fX9MW4mKm351fvnQEoihETn06pKiXGnY//SlTPTt67MX9ZOYmd9ohJReMDOZDgqhnGLxfymycGtsLAmdjDZnAl+IMqgg0FMyVFj9Cl9aKxnn12lxQyX4zabHKk8TUKD3By8ZoEUnJMHt3gEtOmbDgS4brcTPeHCzqnYFw73LEnkqvz+JP0XwauJY7Cf8lminKm/klmjCkQji8T9SHI52v1g0Fxpx0ucp2o3vulQrLHXaHvZ6Fr7J0cSXXzaFF3rrGLt4t4jU/+9TZm1+n5k5XuPW4x4NTCC9NmIj/z0/z41t82E9qZhzhtm2Jdsg6H2tNk+C774TYqcmR6GCvfRadfjRp3cA5dh0UwDVjH2MJFxlHDVkl6la0mVVRsCGF3oBKZVk0BDl1womfnmI46o/uU+gLknHN6Ed6PHHPPYDViWd3VKdmHKT7XrkMMUF6HjZUtla689DWIOWZSiV++1dVPcl/1TV+6tTmN4bBtPcLuX7SHRuLp2PI2kATvRMECsa7gZRypW4jKpVn7b2yetX9TVI3i1zR5zkQJ3dPg8sATvYPL53aKH/WsqUg4rzoAlbk9so+++R4bQY69LhV3B511B7EAynoZFdM + api_key: $API_KEY file_glob: true file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.* on: From c83803b440d6d8dc56d0872369cb7a26c7b0c3c3 Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Wed, 9 Oct 2019 00:43:04 +0100 Subject: [PATCH 2/2] Add comment to travis file So I don't forget how to do a release next time --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 206490f4..18980091 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,12 @@ # Based on the "trust" template v0.1.2 # https://github.com/japaric/trust/tree/v0.1.2 +# ----------- To do a release --------- +# tag a commit and push: +# git tag v0.4.0.1 +# git push origin v0.4.0.1 +# Remember to do a cargo publish to put it in crates.io + dist: trusty language: rust services: docker