From 9ea4bd4f1821b2a57fc850d54fc48f08f1df6ce9 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Fri, 4 Sep 2020 15:54:01 +0000 Subject: [PATCH] Add CircleCI integration --- .circleci/config.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..05d9b89 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,30 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/node:latest + working_directory: ~/app + steps: + - run: + name: Update and install SSH & Git + command: apk update && apk upgrade && apk add --no-cache bash git openssh + - checkout + - run: + name: Install npm deployment app + command: npm install -g github-release-cli + - deploy: + name: Create a release + command: | + PACKAGE_VERSION=$(cat package.json \ + | grep version \ + | head -1 \ + | awk -F: '{ print $2 }' \ + | sed 's/[",]//g') + echo "Creating release '${PACKAGE_VERSION}.${CIRCLE_BUILD_NUM}'" + +workflows: + version: 2 + build_deploy: + jobs: + - build: + context: github-thething