-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy a draft release when pushing a tag.
- Loading branch information
1 parent
898980a
commit 59531ac
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
build: off | ||
|
||
cache: | ||
- '%LOCALAPPDATA%\Programs\stack' | ||
- '%APPDATA%\stack' | ||
- .stack-work | ||
|
||
build: off | ||
|
||
before_build: | ||
- curl -o stack.zip -L --insecure https://www.stackage.org/stack/windows-x86_64 | ||
- 7z x stack.zip stack.exe | ||
- stack --no-terminal setup > nul | ||
|
||
build_script: | ||
- stack --no-terminal build | ||
- stack --no-terminal install --local-bin-path=out\build | ||
- stack --no-terminal install --local-bin-path=.\out\build | ||
- md .\out\publish | ||
- if /i %APPVEYOR_REPO_TAG% equ true copy .\out\build\smoke.exe .\out\publish\smoke-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe | ||
|
||
test_script: | ||
- '.\out\build\smoke --command=.\out\build\smoke test' | ||
|
||
artifacts: | ||
- name: published | ||
path: out\publish\smoke-$(APPVEYOR_REPO_TAG_NAME)-windows-x64.exe | ||
|
||
deploy: | ||
provider: GitHub | ||
draft: true | ||
description: "Smoke $(APPVEYOR_REPO_TAG_NAME)" | ||
artifact: out\publish\smoke-$(APPVEYOR_REPO_TAG_NAME)-windows-x64.exe | ||
force_update: true | ||
auth_token: | ||
secure: "QfL5WkDKhP5KNpeXpEgYGzLz65B7/hcVuhwwyRFul/rGEKYszbAVQ/vmFWtWVVcX" | ||
on: | ||
APPVEYOR_REPO_TAG: true |