Skip to content

Commit 63fef56

Browse files
committed
debug
1 parent d99b827 commit 63fef56

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

appveyor.bat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,22 @@ nmake -f Make_dos.mak VIMPROG=..\vim || exit 1
374374
goto :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>

appveyor.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,6 @@ deploy:
138138
# - downloads -> appveyor.bat
139139

140140
on_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

0 commit comments

Comments
 (0)