Fix github pages request

This commit is contained in:
Crementif 2018-05-22 21:30:41 +02:00
parent 0426b1c402
commit 056efc14d8
2 changed files with 4 additions and 2 deletions

View File

@ -62,5 +62,5 @@ after_success:
--body="$(git log -1 --format='Commited at %ci by **%cn** in commit %h%n### %s%n```%n%b%n```%n') $(if [ '$buildType' = 'Common' ]; then echo 'This is a prerelease with only the common resolutions.'; fi)" \
$([ "$buildType" = "Common" ] && echo "--prerelease=true" || echo "--prerelease=false") \
$([ "$buildType" = "Common" ] && echo "graphicPacksCommon_$TRAVIS_BUILD_NUMBER"".zip" || echo "graphicPacks$TRAVIS_BUILD_NUMBER""_Uncommon.zip")
# Request a new Github Pages build when all the releases are present so that the links will be updated.
- if [ "$buildType" = "Uncommon" ]; then 'curl -X POST --header \"Accept: application/vnd.github.mister-fantastic-preview+json\" -u slashiee:$GITHUB_TOKEN https://api.github.com/repos/slashiee/cemu_graphic_packs/pages/builds'; fi
# Request a new Github Pages build when all the releases are present so that the links will be updated. Need to use a seperate file due to weird yaml parsing.
- sh requestGithubPages.sh

2
requestGithubPages.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
if [ "$buildType" = "Uncommon" ]; then curl -X POST --header "Accept: application/vnd.github.mister-fantastic-preview+json" -u slashiee:$GITHUB_TOKEN https://api.github.com/repos/slashiee/cemu_graphic_packs/pages/builds; fi