Skip to content

Commit 531386d

Browse files
committed
Wups credentials
1 parent d859215 commit 531386d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ before_install:
55
after_success:
66
- script/tag_on_master
77
script: bundle exec rake book:build
8+
env:
9+
GITHUB_KEY:
10+
secure: "l3XdupX6dT48IoTieJXrd7Yx8+KhiR2QYrNrDzT6RKxA7UyXGSP/axsVerg7OjKfIHWZgDJRVzcc2RswE+Xjw9sOY8r2h2q9uCwj8G0EqtFbtgGK0La5LB0euh0tNJN8GLFj1OdSZGY7dWWK88GXeHCua2WSify0V79R4ClIM+s="
11+
812
deploy:
913
provider: releases
1014
file:

script/tag_on_master

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ PATCH=$(($LASTPATCH+1))
1313
echo $PATCH
1414

1515
# Create a tag
16-
curl -H "Authorization: token ${api-key}" \
17-
-X "{\"ref\": \"refs/tags/2.1.$PATCH\", \"sha\": \"$TRAVIS_COMMIT\"}" \
16+
curl -H "Authorization: token $GITHUB_KEY" \
17+
-X POST \
18+
-d "ref=refs/tags/2.1.$PATCH&sha=$TRAVIS_COMMIT" \
1819
https://api.github.com/repos/progit/progit2/git/refs

0 commit comments

Comments
 (0)