diff --git a/.appveyor/afterDeploy.ps1 b/.appveyor/afterDeploy.ps1 new file mode 100644 index 00000000..34a2fe95 --- /dev/null +++ b/.appveyor/afterDeploy.ps1 @@ -0,0 +1,8 @@ +Write-Host "Deployment finished -> do en empty commit on the gh-pages branch to update the page" +git config --global user.email "noreply@vocaluxe.org" +git config --global user.name "VocaluxeBuildBot" +git checkout "gh-pages" +git reset --hard HEAD +git commit --allow-empty -m "Trigger page update after a new publish" +git push -q "https://$($Env:GitHubKey):x-oauth-basic@github.com/Vocaluxe/Vocaluxe.git" "gh-pages" +git checkout - \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index e614e1a2..3fc27076 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -80,6 +80,8 @@ after_build: test: off before_deploy: - ps: ./.appveyor/prepareDeploy.ps1 +after_deploy: +- ps: ./.appveyor/afterDeploy.ps1 deploy: - provider: GitHub tag: $(APPVEYOR_REPO_TAG_NAME)