Skip to content

Commit 17eea95

Browse files
committed
use powershell on windows to set UPLOAD_URL
1 parent 19a27b7 commit 17eea95

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release-cli.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ jobs:
122122
cd ./target/release && Compress-Archive -Path ./dbdev.exe -Destination dbdev.zip
123123
124124
- name: Get Upload Url
125-
run: echo UPLOAD_URL=$(curl --silent https://api.github.com/repos/${{ github.repository }}/releases/latest | jq .upload_url --raw-output) >> $GITHUB_ENV
125+
run: |
126+
$Json = Invoke-WebRequest -Uri https://api.github.com/repos/${{ github.repository }}/releases/latest | ConvertFrom-Json
127+
$UploadUrl = $Json.upload_url
128+
echo "UPLOAD_URL=$UploadUrl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
126129
127130
- name: Upload Release Asset
128131
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)