<commit_before>name: Build assets

on: [push, pull_request]
#  push:
#    paths:
#    - 'public/**'
#    - 'ui/**'
#    - 'package.json'
#    - 'yarn.lock'
#  pull_request:
#    paths:
#    - 'public/**'
#    - 'ui/**'
#    - 'package.json'
#    - 'yarn.lock'

jobs:
  translations:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
      with:
        fetch-depth: 1
    - uses: actions/setup-node@v1
      with:
        node-version: '10.x'
    - run: yarn --version && yarn global add gulp-cli
    - run: ./ui/build prod
    - run: mkdir assets && mv public assets/ && cp LICENSE COPYING.md README.md assets/ && git log -n 1 --pretty=oneline > assets/commit.txt
    - uses: actions/upload-artifact@v1
      with:
        name: lila-assets
        path: assets<commit_msg>try gnu parallel in asset workflow<commit_after>name: Build assets

on: [push, pull_request]
#  push:
#    paths:
#    - 'public/**'
#    - 'ui/**'
#    - 'package.json'
#    - 'yarn.lock'
#  pull_request:
#    paths:
#    - 'public/**'
#    - 'ui/**'
#    - 'package.json'
#    - 'yarn.lock'

jobs:
  assets:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
      with:
        fetch-depth: 1
    - uses: actions/setup-node@v1
      with:
        node-version: '10.x'
    - run: sudo apt-get install -y parallel
    - run: yarn global add gulp-cli
    - run: ./ui/build prod
    - run: mkdir assets && mv public assets/ && cp LICENSE COPYING.md README.md assets/ && git log -n 1 --pretty=oneline > assets/commit.txt
    - uses: actions/upload-artifact@v1
      with:
        name: lila-assets
        path: assets
{'fraction_non_alphanumeric': 0.15715162676488642, 'fraction_numerical': 0.008594229588704727, 'mean_word_length': 2.0129390018484288, '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': '4199346', 'n_tokens_mistral': 612, 'n_tokens_neox': 592, 'n_words': 142}