File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,22 @@ nmake -f Make_dos.mak VIMPROG=..\vim || exit 1
374374goto :eof
375375
376376
377+ :onsuccess_x64
378+ goto :eof
379+ :onsuccess_x86
380+ :: ----------------------------------------------------------------------
381+ :: Turn off the draft status of the release when x86 is successfully finished.
382+ curl -o c:\cygwin64\setup-x86_64.exe https://cygwin.com/setup-x86_64.exe
383+ c:\cygwin64\setup-x86_64.exe -qnNdO -P jq
384+ path %PATH% ;c:\cygwin64\bin
385+ curl -H " Authorization: token %auth_token% " -H " Accept: application/vnd.github.v3+json" " https://api.github.com/repos/%APPVEYOR_REPO_NAME% /releases" > releases.json
386+ type releases.json | jq " .[] | {name, id} | select(.name == \" %APPVEYOR_REPO_TAG_NAME% \" ) | {id}[]" > release_id.txt
387+ type release_id.txt
388+ for /f " delims=" %%i in (release_id.txt) do set REL_ID = %%i
389+ curl -X PATCH -H " Authorization: token %auth_token% " -H " Accept: application/vnd.github.v3+json" " https://api.github.com/repos/%APPVEYOR_REPO_NAME% /releases/%REL_ID% " -d " {\" draft\" : false}"
390+ goto :eof
391+
392+
377393:downloadfile
378394:: ----------------------------------------------------------------------
379395:: call :downloadfile <URL> <localfile>
Original file line number Diff line number Diff line change @@ -138,15 +138,6 @@ deploy:
138138 # - downloads -> appveyor.bat
139139
140140on_success :
141- - |
142- if not "%ARCH%"=="x86" appveyor exit
143- curl -o c:\cygwin64\setup-x86_64.exe https://cygwin.com/setup-x86_64.exe
144- c:\cygwin64\setup-x86_64.exe -qnNdO -P jq
145- path %PATH%;c:\cygwin64\bin
146- curl -H "Authorization: token %auth_token%" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/%APPVEYOR_REPO_NAME%/releases" > releases.json
147- type releases.json | jq ".[] | {name, id} | select(.name == \"%APPVEYOR_REPO_TAG_NAME%\") | {id}[]" > release_id.txt
148- type release_id.txt
149- for /f "delims=" %%i in (release_id.txt) do set REL_ID=%%i
150- curl -X PATCH -H "Authorization: token %auth_token%" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/%APPVEYOR_REPO_NAME%/releases/%REL_ID%" -d "{\"draft\": false}"
141+ - ' "%APPVEYOR_BUILD_FOLDER%\appveyor.bat" onsuccess'
151142
152143# vim: ts=2 sw=2 et
You can’t perform that action at this time.
0 commit comments