Skip to content

Commit

Permalink
Deploy a draft release when pushing a tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirTalwar committed Apr 22, 2019
1 parent 898980a commit 59531ac
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,20 @@ script:
if [[ "$TRAVIS_OS_NAME" == 'linux' ]]; then
make lint
fi
before_deploy:
- make out/build/release/smoke
- mkdir -p out/publish
- cp out/build/release/smoke "out/publish/smoke-${TRAVIS_TAG}-$(uname -s)-$(uname -m)"

deploy:
provider: releases
draft: true
file_glob: true
file: out/publish/*
overwrite: true
skip_cleanup: true
on:
tags: true
api_key:
secure: "dt3YESE3S86tqhWu0J8HxTTsTewcj6S3o//P9hwlFAcPUsqzlZLL9KmySnYvNQ91TuBpUu2blXVRY+CFPU59MEIXtSI4ZSHWEd9vetMdW7GcoN8HYNQapL0jEvIx1D2495jCWr6gEHERFUr6eJgI0ZasmlIPSPL5H3vFS2SxGRs="
23 changes: 20 additions & 3 deletions appveyor.yml
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

0 comments on commit 59531ac

Please sign in to comment.