Skip to content

Instantly share code, notes, and snippets.

@dburriss
Last active January 31, 2017 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dburriss/66b4809c5e534481bdc4426c1d430765 to your computer and use it in GitHub Desktop.
Save dburriss/66b4809c5e534481bdc4426c1d430765 to your computer and use it in GitHub Desktop.
Pretzel AppVeyor build and deployment to blog
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