Skip to content

Commit

Permalink
Update uploadEnvsToBitrise.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
atn4z7 committed Feb 22, 2024
1 parent 94be09d commit 5e38054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-mobile/scripts/github/uploadEnvsToBitrise.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ zip $file_name .env.*
# upload the zip file to bitrise https://devcenter.bitrise.io/en/api/managing-files-in-generic-file-storage.html

# 1. create a temporary pre-signed upload URL
file_size=$(stat -f%z $file_name)
file_size=$(ls -l $file_name | awk '{print $5}')
response_1=$(curl -H "Authorization: $access_token" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"upload_file_name\": \"$file_name\", \"upload_file_size\": $file_size, \"user_env_key\": \"$bitrise_file_name\"}" -X POST "$base_url/generic-project-files")

# 2. upload the file to the pre-signed URL
Expand Down

0 comments on commit 5e38054

Please sign in to comment.