Add CircleCI
This commit is contained in:
parent
f8fdce7df9
commit
c78e6500d2
21
.circleci/config.yml
Normal file
21
.circleci/config.yml
Normal file
@ -0,0 +1,21 @@
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: windyfairy/cienv
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
- run:
|
||||
name: Build project
|
||||
command: xbuild /p:Configuration=Release gitadora-textool.sln
|
||||
|
||||
- deploy:
|
||||
name: Deploy
|
||||
command: |
|
||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||
mkdir -p deploy
|
||||
mv gitadora-texbintool/bin/Release/* deploy/
|
||||
ghr -t "${GITHUB_TOKEN}" -u "${CIRCLE_PROJECT_USERNAME}" -r "${CIRCLE_PROJECT_REPONAME}" -c "${CIRCLE_SHA1}" -delete "release-`date '+%Y%m%d-%H%M%S'`" deploy/
|
||||
fi
|
Loading…
Reference in New Issue
Block a user