<commit_before>name: Publish to PyPI

on:
    push:
        tag:
            - v1.*

jobs:
    build-n-publish:
        if: github.repository == 'avatartwo/avatar2'
        runs-on: ubuntu-20.04
        steps:
            - name: Check out repository code
              uses: actions/checkout@v2

            - name: Build a binary wheel and a source tarball
              run: python3 setup.py sdist bdist_wheel

            - name: Check package
              run: python3 -m twine check dist/*

            - name: Publish to Test PyPI
              uses: pypa/gh-action-pypi-publish@release/v1
              with:
                  user: __token__
                  password: ${{ secrets.TEST_PYPI_API_TOKEN }}
                  repository_url: https://test.pypi.org/legacy/

<commit_msg>make action triggers on new tags<commit_after>name: Publish to PyPI

on:
    create:

jobs:
    build-n-publish:
        if: github.repository == 'avatartwo/avatar2'
        if: ${{ startsWith(github.ref, 'refs/tags/v') }}
        runs-on: ubuntu-20.04
        steps:
            - name: Check out repository code
              uses: actions/checkout@v2

            - name: Build a binary wheel and a source tarball
              run: python3 setup.py sdist bdist_wheel

            - name: Check package
              run: |
                  pip3 install twine
                  python3 -m twine check dist/*

            - name: Publish to Test PyPI
              uses: pypa/gh-action-pypi-publish@release/v1
              with:
                  user: __token__
                  password: ${{ secrets.TEST_PYPI_API_TOKEN }}
                  repository_url: https://test.pypi.org/legacy/


{'fraction_non_alphanumeric': 0.08595139300533491, 'fraction_numerical': 0.011855364552459988, 'mean_word_length': 1.442836468885673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5873587', 'n_tokens_mistral': 509, 'n_tokens_neox': 478, 'n_words': 129}