From b33fe92e8ac837946792cdbcc1d6c3e086c8715f Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Mon, 14 Aug 2017 17:06:45 +0200 Subject: [PATCH] Do an empty commit to gh-pages branch after publishing artifacts to trigger a git hub pages build (fixes #277). --- .appveyor/afterDeploy.ps1 | 8 ++++++++ appveyor.yml | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 .appveyor/afterDeploy.ps1 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)