Skip to content

Commit

Permalink
[CI] Fix multiline command indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasLauermann committed Apr 17, 2023
1 parent 5a5773d commit f06ce9f
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -561,43 +561,43 @@ publish:github-release:
# generate installation access token for the mutable GitHub repository
- >
response=$(curl -L -f
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer $jwt"
-H "X-GitHub-Api-Version: 2022-11-28"
https://api.github.com/app/installations/36391181/access_tokens
-d '{"repository":"mutable","permissions":{"contents":"write"}}')
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer $jwt"
-H "X-GitHub-Api-Version: 2022-11-28"
"https://api.github.com/app/installations/36391181/access_tokens"
-d '{"repository":"mutable","permissions":{"contents":"write"}}')
- |
inst_acc_token=$(echo "$response" | grep -oP '(?<=token": ").*?(?=")')
# create GitHub release
- >
response=$(curl -L -f
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer $inst_acc_token
-H "X-GitHub-Api-Version: 2022-11-28"
https://api.github.com/repos/mutable-org/mutable/releases
-d '{"tag_name":"${TAG}","target_commitish":"main"}')
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer $inst_acc_token
-H "X-GitHub-Api-Version: 2022-11-28"
"https://api.github.com/repos/mutable-org/mutable/releases"
-d '{"tag_name":"${TAG}","target_commitish":"main"}')
- |
upload_url=$(echo "$response" | grep -oP '(?<=upload_url": ").*?(?={)')
# add assets to release
- >
curl -L -f
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer $inst_acc_token
-H "X-GitHub-Api-Version: 2022-11-28"
-H "Content-Type: application/octet-stream"
${upload_url}?name=mutable-linux-amd64-${TAG}.zip
--data-binary "@mutable-linux-amd64.zip"
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer $inst_acc_token
-H "X-GitHub-Api-Version: 2022-11-28"
-H "Content-Type: application/octet-stream"
"${upload_url}?name=mutable-linux-amd64-${TAG}.zip"
--data-binary "@mutable-linux-amd64.zip"
- >
curl -L -f
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer $inst_acc_token
-H "X-GitHub-Api-Version: 2022-11-28"
-H "Content-Type: application/octet-stream"
${upload_url}?name=mutable-macos-amd64-${TAG}.zip
--data-binary "@mutable-macos-amd64.zip"
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer $inst_acc_token
-H "X-GitHub-Api-Version: 2022-11-28"
-H "Content-Type: application/octet-stream"
"${upload_url}?name=mutable-macos-amd64-${TAG}.zip"
--data-binary "@mutable-macos-amd64.zip"

0 comments on commit f06ce9f

Please sign in to comment.