diff --git a/.travis.yml b/.travis.yml index 520588db..77242360 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/requestGithubPages.sh b/requestGithubPages.sh new file mode 100755 index 00000000..7bbc49db --- /dev/null +++ b/requestGithubPages.sh @@ -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 \ No newline at end of file