<commit_before>name: Publish Locus API

on:
  push:
    tags:
      - 'Locus_API_[0-9]+.[0-9]+.[0-9]+'

env:
  ANDROID_SIGN_DEBUG: ${{ secrets.ANDROID_SIGN_DEBUG }}
  ANDROID_SIGN_RELEASE: ${{ secrets.ANDROID_SIGN_RELEASE }}

jobs:
  build:
    name: Release API
    runs-on: ubuntu-latest

    # job steps
    steps:
      # Prepare source code
      # https://github.com/marketplace/actions/checkout
      - name: Clone repo
        uses: actions/checkout@v2

      # Setup of environment
      - name: Set up JDK 11
        uses: actions/setup-java@v2
        with:
          distribution: 'temurin'
          java-version: '11'

      # Base64 decodes and pipes the GPG key content into the secret file
      - name: Prepare environment
        env:
          SIGNING_SECRET_KEY_CONTENT: ${{ secrets.SIGNING_SECRET_KEY_CONTENT }}
          SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
        run: |
          git fetch --unshallow
          sudo bash -c "echo '$SIGNING_SECRET_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"

          # Public Locus API - core
          - name: Publish `locus-api-core`
            run: ./gradlew :locus-api-core:clean :locus-api-core:publishReleasePublicationToMavencentralRepository
            env:
              OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
              OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
              SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
              SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
              SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
              SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}

          # Runs upload, and then closes & releases the repository
          - name: Releaes repository
            run: ./gradlew closeAndReleaseRepository
            env:
              OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
              OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
              SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
              SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
              SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
              SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}<commit_msg>- chg: minor update in the workflow<commit_after>name: Publish Locus API

on:
  push:
    tags:
      - 'Locus_API_[0-9]+.[0-9]+.[0-9]+'

env:
  ANDROID_SIGN_DEBUG: ${{ secrets.ANDROID_SIGN_DEBUG }}
  ANDROID_SIGN_RELEASE: ${{ secrets.ANDROID_SIGN_RELEASE }}

jobs:
  build:
    name: Release API
    runs-on: ubuntu-latest

    # job steps
    steps:
      # Prepare source code
      # https://github.com/marketplace/actions/checkout
      - name: Clone repo
        uses: actions/checkout@v2

      # Setup of environment
      - name: Set up JDK 11
        uses: actions/setup-java@v2
        with:
          distribution: 'temurin'
          java-version: '11'

      # Base64 decodes and pipes the GPG key content into the secret file
      - name: Prepare environment
        env:
          SIGNING_SECRET_KEY_CONTENT: ${{ secrets.SIGNING_SECRET_KEY_CONTENT }}
          SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
        run: |
          git fetch --unshallow
          sudo bash -c "echo '$SIGNING_SECRET_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"

      # Public Locus API - core
      - name: Publish `locus-api-core`
        run: ./gradlew :locus-api-core:clean :locus-api-core:publishReleasePublicationToMavencentralRepository
        env:
          OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
          OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
          SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
          SIGNING_PASSWORD: ${{ <PASSWORD>.SIGNING_PASSWORD }}
          SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
          SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}

      # Runs upload, and then closes & releases the repository
      - name: Releaes repository
        run: ./gradlew closeAndReleaseRepository
        env:
          OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
          OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
          SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
          SIGNING_PASSWORD: ${{ <PASSWORD> }}
          SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
          SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
{'fraction_non_alphanumeric': 0.09931733098436468, 'fraction_numerical': 0.0070469059678484915, 'mean_word_length': 2.567949725058916, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1443730', 'n_tokens_mistral': 1609, 'n_tokens_neox': 1533, 'n_words': 266}