Skip to content

Instantly share code, notes, and snippets.

@Vladekk
Last active April 11, 2017 20:16
Show Gist options
  • Save Vladekk/9bc82b378013cf4c0575c6c9d943724e to your computer and use it in GitHub Desktop.
Save Vladekk/9bc82b378013cf4c0575c6c9d943724e to your computer and use it in GitHub Desktop.
branches:
only:
- master
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 .\Shayana.Web\config.wyam
on_success:
- cd Shayana.Web/wwwroot
- 7z a shayana.zip
- "curl -H \"Content-Type: application/zip\" -H \"Authorization: Bearer \" --data-binary \"@shayana.zip\" https://api.netlify.com/api/v1/sites/shayana.netlify.com/deploys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment