5
0
mirror of synced 2024-11-24 06:50:10 +01:00

Add CircleCI

This commit is contained in:
windyfairy 2019-10-08 16:27:05 +09:00
parent f8fdce7df9
commit c78e6500d2

21
.circleci/config.yml Normal file
View 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