Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobianco committed Oct 13, 2023
1 parent db1f932 commit 7870f6d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 3 additions & 1 deletion bin/mush
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
## BP010: Release metadata
## @build_date: 2023-10-13T10:44:22Z
## @build_date: 2023-10-13T10:45:57Z
set -e
extern() {
extern=$1
Expand Down Expand Up @@ -1044,6 +1044,8 @@ github_upload_release_asset() {
local asset_name=mush
local asset_file=target/dist/mush

echo "${repository}"

curl \
-s -X POST \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
Expand Down
2 changes: 2 additions & 0 deletions src/registry/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ github_upload_release_asset() {
local asset_name=mush
local asset_file=target/dist/mush

echo "${repository}"

curl \
-s -X POST \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
Expand Down
4 changes: 3 additions & 1 deletion target/dist/mush
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
## BP010: Release metadata
## @build_date: 2023-10-13T10:44:22Z
## @build_date: 2023-10-13T10:45:57Z
set -e
extern() {
extern=$1
Expand Down Expand Up @@ -1044,6 +1044,8 @@ github_upload_release_asset() {
local asset_name=mush
local asset_file=target/dist/mush

echo "${repository}"

curl \
-s -X POST \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
Expand Down
6 changes: 2 additions & 4 deletions target/dist/mush.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
## BP010: Release metadata
## @build_date: 2023-10-13T10:43:57Z
## @build_date: 2023-10-13T10:44:22Z
set -e
extern() {
extern=$1
Expand Down Expand Up @@ -1044,13 +1044,11 @@ github_upload_release_asset() {
local asset_name=mush
local asset_file=target/dist/mush

echo "UPLOAD"

curl \
-s -X POST \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
-H "Content-Type: application/octet-stream" \
https://uploads.github.com/repos/${repository}/releases/$release_id/assets?name=${asset_name} \
https://uploads.github.com/repos/${repository}/releases/$release_id/assets?name=${asset_name}1 \
--data-binary @"$asset_file"
}

Expand Down
4 changes: 3 additions & 1 deletion target/dist/mush.tmp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
## BP010: Release metadata
## @build_date: 2023-10-13T10:44:22Z
## @build_date: 2023-10-13T10:45:57Z
set -e
extern() {
extern=$1
Expand Down Expand Up @@ -1044,6 +1044,8 @@ github_upload_release_asset() {
local asset_name=mush
local asset_file=target/dist/mush

echo "${repository}"

curl \
-s -X POST \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
Expand Down

0 comments on commit 7870f6d

Please sign in to comment.