Skip to content

Commit

Permalink
chore: CircleCI setup (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirederik authored Oct 4, 2022
1 parent 0d918a2 commit 6a5fb46
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: 2.1

orbs:
node: circleci/[email protected]

jobs:
yarn-build:
executor: node/default
steps:
- checkout
- node/install-packages:
cache-path: ~/project/node_modules
pkg-manager: yarn
- run: yarn build
- persist_to_workspace:
root: .
paths:
- .
deploy:
executor: node/default
steps:
- attach_workspace:
at: .
- add_ssh_keys:
# Add github deploy key
# https://circleci.com/docs/github-integration#create-a-github-deploy-key
fingerprints:
- "8a:22:0b:a6:fb:bd:d8:75:87:1c:07:39:1e:7f:6b:3b"
- run:
# see https://circleci.com/docs/github-integration#establish-the-authenticity-of-an-ssh-host
name: setup git
command: |
mkdir -p ~/.ssh
ssh-keyscan github.com > ~/.ssh/known_hosts
git config --global user.name "syntassodev"
git config --global user.email "[email protected]"
- run:
name: deploy
command: |
yarn deploy
no_output_timeout: 2m

workflows:
build-and-deploy:
jobs:
- yarn-build:
filters:
branches:
only: main
- deploy:
requires: [ yarn-build ]

0 comments on commit 6a5fb46

Please sign in to comment.