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 82e7a78
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 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,12 @@ jobs:
- run: npm run build
- run: npm run build-storybook
- run: npm test
- run: mkdir /tmp/workspace
- run: cp -r public /tmp/workspace
- persist_to_workspace:
root: /tmp/workspace
paths:
- public/*
python-build-and-test:
executor: python/default
steps:
Expand All @@ -22,8 +29,33 @@ jobs:
- run:
name: Run lint
command: make lint
- run: scripts/build-glean-metadata.py
- run: mkdir /tmp/workspace-data
- run: cp -r public/data/* /tmp/workspace-data
- persist_to_workspace:
root: /tmp/workspace-data
paths:
- ./*
upload:
docker:
- image: google/cloud-sdk
working_directory: /tmp
steps:
- attach_workspace:
at: /tmp/workspace
- attach_workspace:
at: /tmp/workspace-data
- run: cp -r /tmp/workspace-data/* /tmp/workspace/public/data
- 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 82e7a78

Please sign in to comment.