Skip to content

Commit

Permalink
[CI] Fix release asset upload path & variable substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasLauermann committed Apr 18, 2023
1 parent f8106d7 commit 1d6cd0b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ upload:package:linux-amd64:
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/mutable/${TAG}/mutable-linux-amd64-${TAG}.zip"
artifacts:
paths:
- "mutable-linux-amd64.zip"
- "mutable/mutable-linux-amd64.zip"
expire_in: 1 day


Expand All @@ -495,7 +495,7 @@ upload:package:macos-amd64:
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/mutable/${TAG}/mutable-macos-amd64-${TAG}.zip"
artifacts:
paths:
- "mutable-macos-amd64.zip"
- "mutable/mutable-macos-amd64.zip"
expire_in: 1 day


Expand Down Expand Up @@ -576,7 +576,7 @@ publish:github-release:
-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"}')
-d "{\"tag_name\":\"${TAG}\",\"target_commitish\":\"main\"}")
- |
upload_url=$(echo "$response" | grep -oP '(?<=upload_url": ").*?(?={)')
Expand All @@ -590,7 +590,7 @@ publish:github-release:
-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"
--data-binary "@mutable/mutable-linux-amd64.zip"
- >
curl -L -f
Expand All @@ -600,4 +600,4 @@ publish:github-release:
-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"
--data-binary "@mutable/mutable-macos-amd64.zip"

0 comments on commit 1d6cd0b

Please sign in to comment.