<commit_before>name: github pages

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  deploy:
    runs-on: ubuntu-20.04
    concurrency:
      group: ${{ github.workflow }}-${{ github.ref }}
    steps:
      - uses: actions/checkout@v2

      - name: Setup mdBook
        uses: peaceiris/actions-mdbook@v1
        with:
          mdbook-version: 'latest'
      - name: Install Dependencies
        run: |
          ./tools/install-deps
      - name: Run mdbook
        run: |
          mkdir -p docs/target/
          mdbook build docs/book/ --dest-dir ../target/
      - name: Run cargo doc
        run: |
          git submodule update --init
          ./tools/cargo-doc --target-dir ./docs/target/
      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./docs/target/
<commit_msg>github: Specify mdbook's target path<commit_after>name: github pages

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  deploy:
    runs-on: ubuntu-20.04
    concurrency:
      group: ${{ github.workflow }}-${{ github.ref }}
    steps:
      - uses: actions/checkout@v2

      - name: Setup mdBook
        uses: peaceiris/actions-mdbook@v1
        with:
          mdbook-version: 'latest'
      - name: Install Dependencies
        run: |
          ./tools/install-deps
      - name: Run mdbook
        run: |
          mkdir -p docs/target/
          mdbook build docs/book/ --dest-dir ../target/
      - name: Run cargo doc
        run: |
          git submodule update --init
          ./tools/cargo-doc --target-dir ./docs/target/
      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./docs/target/html/

{'fraction_non_alphanumeric': 0.11936193619361936, 'fraction_numerical': 0.007700770077007701, 'mean_word_length': 1.6286127167630058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '901102', 'n_tokens_mistral': 615, 'n_tokens_neox': 576, 'n_words': 134}