Last active
January 31, 2017 23:13
-
-
Save dburriss/66b4809c5e534481bdc4426c1d430765 to your computer and use it in GitHub Desktop.
Pretzel AppVeyor build and deployment to blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
branches: | |
only: | |
- source | |
environment: | |
access_token: | |
secure: ABC123... | |
# replace the above with your secure token | |
install: | |
- git submodule init | |
- git submodule update | |
- cinst pretzel | |
build_script: | |
- ps: .\pretzel.ps1 | |
test: off | |
on_success: | |
# See http://www.appveyor.com/docs/how-to/git-push for more info | |
- git config --global credential.helper store | |
- git config --global user.email %APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL% | |
- git config --global user.name %APPVEYOR_REPO_COMMIT_AUTHOR% | |
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" | |
- cmd: cd _site | |
- git add . | |
- git commit -m "From Appveyor [skip appveyor]" | |
- git push origin HEAD:master -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment