Merge pull request #352 from scratchfoundation/develop

Dev -> Master
This commit is contained in:
Ron de las Alas 2023-05-16 11:32:25 -04:00 committed by GitHub
commit 41211ea2c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

39
.circleci/config.yml Normal file
View file

@ -0,0 +1,39 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1
orbs:
slack: circleci/slack@4.12.5
aws-s3: circleci/aws-s3@3.1.1
executors:
scratchjr-website-executor:
docker:
- image: cimg/node:17.0.0
resource_class: small
jobs:
setup_and_deploy:
executor: scratchjr-website-executor
steps:
- checkout
- run:
name: Install Dependencies
command: npm install
- run:
name: Lint Site Code
command: npm run test
- run:
name: Build Site
command: npm run build
- when:
condition:
or:
- equal: [ develop, << pipeline.git.branch >> ]
steps:
- run:
name: Deploy to Staging
command: echo "deploy to staging"
workflows:
build_and_deploy_scratchjr-website:
jobs:
- setup_and_deploy:
name: Setup and Deploy ScratchJR Website