Skip to content

Commit

Permalink
Deploy to protosaur.dev (fixes #60)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlach committed Jan 22, 2021
1 parent 4e17f03 commit 866dfb4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2.1
orbs:
node: circleci/node@2.0.1
python: circleci/python@0.2.1
gcs: t3n/gcs@0.1.3
jobs:
build-and-test:
executor:
Expand All @@ -14,6 +15,10 @@ jobs:
- run: npm run build
- run: npm run build-storybook
- run: npm test
- persist_to_workspace:
root: /tmp/workspace
paths:
- public/*
python-build-and-test:
executor: python/default
steps:
Expand All @@ -22,8 +27,32 @@ jobs:
- run:
name: Run lint
command: make lint
- persist_to_workspace:
root: /tmp/workspace-data
paths:
- public/data/*
upload:
docker:
- image: google/cloud-sdk
working_directory: /tmp
steps:
- attach_workspace:
# Must be absolute path or relative path from working_directory
at: /tmp/workspace
- attach_workspace:
# Must be absolute path or relative path from working_directory
at: /tmp/workspace-data
- run: cp -r /tmp/workspace-data/public/data /tmp/workspace/public
- gcs/gcs-rsync:
bucket: glean-dictionary-dev
source: /tmp/workspace/public
options: -r
workflows:
build-and-test:
jobs:
- build-and-test
- python-build-and-test
- upload:
requires:
- build-and-test
- python-build-and-test

0 comments on commit 866dfb4

Please sign in to comment.