Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Jun 5, 2022
1 parent d99b827 commit 63fef56
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
16 changes: 16 additions & 0 deletions appveyor.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 <URL> <localfile>
Expand Down
11 changes: 1 addition & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 63fef56

Please sign in to comment.