<commit_before>#!/usr/bin/env bash

#
# Script is expecting branch as an argument: origin/master or origin/develop.
# Jenkins is going to look after the project and run the script with the appropriate parameter.
########################################
npm install;
npm run build;

if [[ $# > 0 ]]; then
    if [[ "$1" == "origin/master" ]]; then
        echo "Deploying to Production";
        aws s3 --acl=public-read cp --recursive ./public s3://famous.org/
    else
        if [[ "$1" == "origin/develop" ]]; then
            echo "Deploying to Staging";
            aws s3 --acl=public-read cp --recursive ./public s3://staging.famous.org/<commit_msg>add region to deploy-ci script<commit_after>#!/usr/bin/env bash

#
# Script is expecting branch as an argument: origin/master or origin/develop.
# Jenkins is going to look after the project and run the script with the appropriate parameter.
########################################
npm install;
npm run build;

if [[ $# > 0 ]]; then
    if [[ "$1" == "origin/master" ]]; then
        echo "Deploying to Production";
        aws s3 --region=us-west-1 --acl=public-read cp --recursive ./public s3://famous.org/
    else
        if [[ "$1" == "origin/develop" ]]; then
            echo "Deploying to Staging";
            aws s3 --region=us-west-1 --acl=public-read cp --recursive ./public s3://staging.famous.org/
{'fraction_non_alphanumeric': 0.19092904169714703, 'fraction_numerical': 0.011704462326261888, 'mean_word_length': 2.842696629213483, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2079183', 'n_tokens_mistral': 417, 'n_tokens_neox': 398, 'n_words': 139}