diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..76c467b --- /dev/null +++ b/.circleci/config.yml @@ -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