<commit_before>#!/bin/bash
set -e
set -uxo pipefail

# Decrypt and import signing key
openssl aes-256-cbc -K $encrypted_ec79e61fc360_key -iv $encrypted_ec79e61fc360_iv -in ci/dropwizard.asc.enc -out ci/dropwizard.asc -d
gpg --fast-import ci/dropwizard.asc

./mvnw -B deploy --settings 'ci/settings.xml' -DperformRelease=true -Dmaven.test.skip=true

# Documentation
./mvnw -B site site:stage --settings 'ci/settings.xml' -Dmaven.test.skip=true

DOCS_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
mkdir gh-pages
mv target/staging gh-pages/"${DOCS_VERSION}"
<commit_msg>Avoid error message while signing artifacts<commit_after>#!/bin/bash
set -e
set -uxo pipefail

# Decrypt and import signing key
openssl aes-256-cbc -K $encrypted_ec79e61fc360_key -iv $encrypted_ec79e61fc360_iv -in ci/dropwizard.asc.enc -out ci/dropwizard.asc -d
gpg --fast-import ci/dropwizard.asc

# Avoid error message: "gpg: signing failed: Inappropriate ioctl for device"
# https://tutorials.technology/solved_errors/21-gpg-signing-failed-Inappropriate-ioctl-for-device.html
export GPG_TTY=$(tty)

./mvnw -B deploy --settings 'ci/settings.xml' -DperformRelease=true -Dmaven.test.skip=true

# Documentation
./mvnw -B site site:stage --settings 'ci/settings.xml' -Dmaven.test.skip=true

DOCS_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
mkdir gh-pages
mv target/staging gh-pages/"${DOCS_VERSION}"

{'fraction_non_alphanumeric': 0.12928022361984626, 'fraction_numerical': 0.025157232704402517, 'mean_word_length': 4.705179282868526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1161275', 'n_tokens_mistral': 565, 'n_tokens_neox': 521, 'n_words': 118}