Skip to content

Commit 37ab797

Browse files
author
Travis CI
committed
Fixing api
1 parent 27711e8 commit 37ab797

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

github-cli.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ create_release(){
3535
upload_file(){
3636
local OUT=$(curl --data-binary "@$SOURCE_FILE" -w "\n%{http_code}\n" \
3737
-s -X POST -H 'Content-Type: application/octet-stream' \
38-
"https://uploads.github.com/repos/${USERNAME}/${REPOSITORY}/releases/$RELEASE_ID/assets?name=$TARGET_FILE&access_token=$REPO_TOKEN"
38+
-H "Authorization: token $${REPO_TOKEN}" \
39+
"https://uploads.github.com/repos/${USERNAME}/${REPOSITORY}/releases/$RELEASE_ID/assets?name=$TARGET_FILE"
3940
)
4041

4142
if test "$(echo "$OUT" | tail -n 1)" -ne "201"; then
@@ -63,8 +64,8 @@ validate_repo_token(){
6364
}
6465

6566
create_tag(){
66-
git config user.email "builds@travis-ci.com"
67-
git config user.name "Travis CI"
67+
git config user.email "githubcli@github.com"
68+
git config user.name "Github CLI"
6869

6970
git commit -a -m "Releasing ${APP_VERSION}" || true
7071
git tag ${APP_VERSION}

0 commit comments

Comments
 (0)