<commit_before>stages:
  - build
  - deploy

build:
  only:
    - master
  image: starefossen/ruby-node:latest
  stage: build
  cache:
    paths:
      - .yarn-cache/
  artifacts:
    expire_in: 1 month
    paths:
      - ./dist
  before_script:
    - ruby --version
    - gem --version
    - bundler --version
    - gem update --system
    - gem install bundler
    - ruby --version
    - gem --version
    - bundler --version
    - bundle install
    - yarn install --frozen-lockfile --cache-folder .yarn-cache
  script:
    - yarn build

build_deploy:
  only:
    - master
  image: google/cloud-sdk:alpine
  stage: deploy
  cache:
    paths:
      - .yarn-cache/
  environment:
    name: website/live
    url: https://www.stickypixel.com
  artifacts:
    expire_in: 1 month
    paths:
      - ./dist
  script:
    - gsutil rsync -d ./dist gs://www.stickypixel.com
    - |
      curl -X POST "https://api.cloudflare.com/client/v4/zones/84605ec2d4a19c5032a1ed0734da912a/purge_cache" \
      -H "X-Auth-Email: ${CLOUDFLARE_EMAIL}" \
      -H "X-Auth-Key: ${CLOUDFLARE_API_KEY}" \
      -H "Content-Type: application/json" \
      --data '{"files":[${PATHS}]}'
  variables:<commit_msg>ci: gems again<commit_after>stages:
  - build
  - deploy

build:
  only:
    - master
  image: starefossen/ruby-node:latest
  stage: build
  cache:
    paths:
      - .yarn-cache/
      - vendor/
  artifacts:
    expire_in: 1 month
    paths:
      - ./dist
  before_script:
    - ruby --version
    - gem --version
    - bundler --version
    - gem update --system
    - gem install bundler --path vendor
    - ruby --version
    - gem --version
    - bundler --version
    - gem install bundler --user-install
    # - bundle install
    # - yarn install --frozen-lockfile --cache-folder .yarn-cache
  script:
    # - yarn build

build_deploy:
  only:
    - master
  image: google/cloud-sdk:alpine
  stage: deploy
  cache:
    paths:
      - .yarn-cache/
  environment:
    name: website/live
    url: https://www.stickypixel.com
  artifacts:
    expire_in: 1 month
    paths:
      - ./dist
  script:
    - gsutil rsync -d ./dist gs://www.stickypixel.com
    - |
      curl -X POST "https://api.cloudflare.com/client/v4/zones/84605ec2d4a19c5032a1ed0734da912a/purge_cache" \
      -H "X-Auth-Email: ${CLOUDFLARE_EMAIL}" \
      -H "X-Auth-Key: ${CLOUDFLARE_API_KEY}" \
      -H "Content-Type: application/json" \
      --data '{"files":[${PATHS}]}'
  variables:
{'fraction_non_alphanumeric': 0.13409648405560098, 'fraction_numerical': 0.019623875715453803, 'mean_word_length': 1.9951040391676866, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '1593327', 'n_tokens_mistral': 937, 'n_tokens_neox': 891, 'n_words': 190}