Skip to content

Instantly share code, notes, and snippets.

@Pothulapati
Last active December 1, 2017 12:48
Show Gist options
  • Save Pothulapati/2f4c6b0c8b7c0063df2586180ef2c362 to your computer and use it in GitHub Desktop.
Save Pothulapati/2f4c6b0c8b7c0063df2586180ef2c362 to your computer and use it in GitHub Desktop.
branches:
only:
- source
install:
- git submodule update --init --recursive
- mkdir ..\Wyam
- mkdir ..\output
# Fetch the latest version of Wyam
- "curl -s https://raw.githubusercontent.com/Wyamio/Wyam/master/RELEASE -o ..\\Wyam\\wyamversion.txt"
- set /P WYAMVERSION=< ..\Wyam\wyamversion.txt
- echo %WYAMVERSION%
# Get and unzip the latest version of Wyam
- ps: Start-FileDownload "https://github.com/Wyamio/Wyam/releases/download/$env:WYAMVERSION/Wyam-$env:WYAMVERSION.zip" -FileName "..\Wyam\Wyam.zip"
- 7z x ..\Wyam\Wyam.zip -o..\Wyam -r
build_script:
- ..\Wyam\wyam --output ..\output
on_success:
# Switch branches to gh-pages, clean the folder, copy everything in from the Wyam output, and commit/push
# See http://www.appveyor.com/docs/how-to/git-push for more info
- git config --global credential.helper store
# EDIT your Git email and name
- git config --global user.email $email$
- git config --global user.name $name$
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:acgitcess_token):[email protected]`n"
- git checkout master
- xcopy /y ..\output . /E
# EDIT the origin of your repository - have to reset it here because AppVeyor pulls from SSH, but GitHub won't accept SSH pusheshttps://github.com/Pothulapati/tarunpothulapati-com.git
- git remote set-url origin https://github.com/pothulapati/tarunpothulapati-com.git
- git add -A
- git commit -a -m "Commit from AppVeyor"
- git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment