From 63fef56cdccf55868a7351fab93917afb3ea04df Mon Sep 17 00:00:00 2001 From: "K.Takata" Date: Mon, 6 Jun 2022 04:15:32 +0900 Subject: [PATCH] debug --- appveyor.bat | 16 ++++++++++++++++ appveyor.yml | 11 +---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/appveyor.bat b/appveyor.bat index 73682d48..2dd2e0f1 100755 --- a/appveyor.bat +++ b/appveyor.bat @@ -374,6 +374,22 @@ nmake -f Make_dos.mak VIMPROG=..\vim || exit 1 goto :eof +:onsuccess_x64 +goto :eof +:onsuccess_x86 +:: ---------------------------------------------------------------------- +:: Turn off the draft status of the release when x86 is successfully finished. +curl -o c:\cygwin64\setup-x86_64.exe https://cygwin.com/setup-x86_64.exe +c:\cygwin64\setup-x86_64.exe -qnNdO -P jq +path %PATH%;c:\cygwin64\bin +curl -H "Authorization: token %auth_token%" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/%APPVEYOR_REPO_NAME%/releases" > releases.json +type releases.json | jq ".[] | {name, id} | select(.name == \"%APPVEYOR_REPO_TAG_NAME%\") | {id}[]" > release_id.txt +type release_id.txt +for /f "delims=" %%i in (release_id.txt) do set REL_ID=%%i +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}" +goto :eof + + :downloadfile :: ---------------------------------------------------------------------- :: call :downloadfile diff --git a/appveyor.yml b/appveyor.yml index 879ec34a..84caaf54 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -138,15 +138,6 @@ deploy: # - downloads -> appveyor.bat on_success: - - | - if not "%ARCH%"=="x86" appveyor exit - curl -o c:\cygwin64\setup-x86_64.exe https://cygwin.com/setup-x86_64.exe - c:\cygwin64\setup-x86_64.exe -qnNdO -P jq - path %PATH%;c:\cygwin64\bin - curl -H "Authorization: token %auth_token%" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/%APPVEYOR_REPO_NAME%/releases" > releases.json - type releases.json | jq ".[] | {name, id} | select(.name == \"%APPVEYOR_REPO_TAG_NAME%\") | {id}[]" > release_id.txt - type release_id.txt - for /f "delims=" %%i in (release_id.txt) do set REL_ID=%%i - 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}" + - '"%APPVEYOR_BUILD_FOLDER%\appveyor.bat" onsuccess' # vim: ts=2 sw=2 et