Skip to content

Commit

Permalink
use curl
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed May 5, 2023
1 parent abbbf1a commit 17754bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/publish-release.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if %errorlevel% neq 0 (
exit /b 1
)

where wget.exe /Q
where curl.exe /Q
if %errorlevel% neq 0 (
echo Required command 'wget' not found. Download from https://eternallybored.org/misc/wget/
echo Required command 'curl' not found. Download from https://curl.se/windows/
exit /b 1
)

Expand Down Expand Up @@ -76,7 +76,7 @@ echo Creating GitHub release https://github.com/%REPO_NAME%/releases/tag/v%PROJE
echo "prerelease":%PREPRELEASE%
echo }
)>target\github_release.json
wget -qO- --header="Authorization: token %GITHUB_ACCESS_TOKEN%" --post-file=target/github_release.json "https://api.github.com/repos/%REPO_NAME%/releases" || goto :eof
curl -sSfL --header "Authorization: token %GITHUB_ACCESS_TOKEN%" -d @target/github_release.json "https://api.github.com/repos/%REPO_NAME%/releases" || goto :eof

REM submit haxelib release
echo Submitting haxelib release...
Expand Down

0 comments on commit 17754bd

Please sign in to comment.