mirror of
https://github.com/scratchfoundation/scratchjr-website.git
synced 2025-08-28 22:30:12 -04:00
commit
41211ea2c3
1 changed files with 39 additions and 0 deletions
39
.circleci/config.yml
Normal file
39
.circleci/config.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue