Skip to content

Regenerated the client #38

Regenerated the client

Regenerated the client #38

Workflow file for this run

name: Publishing
on: [push]
jobs:
test:
uses: ./.github/workflows/test.yml
publish:
name: Publish the client to the public registry
needs: [test]
runs-on: ubuntu-22.04
env:
MVNSETTINGS: ${{ secrets.MVNSETTINGS }}
PRIVATEKEY: ${{ secrets.PRIVATEKEY }}
GPGKEY: ${{ secrets.GPGKEY }}
strategy:
matrix:
java: [ '17' ]
services:
manticoresearch-manticore:
image: manticoresearch/manticore:dev
env:
EXTRA: 1
ports:
- 9408:9308
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Check for dev-version
if: ${{ contains(github.ref, 'master') }}
run: |
VERSION=`git log -1 --date=format:"%y%m%d%H" --format=%cd-%h|head`
echo "version $VERSION"
sed -i -E "s/(\<version\>)([0-9]\.[0-9]\.)(.*)(\<)/\1\2$VERSION\4/1" pom.xml
- name: Publish
run: |
sleep 3m
mkdir -p ~/.m2
export GPG_TTY=$(tty)
export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
echo "$MVNSETTINGS" > ~/.m2/settings.xml
echo "import"
echo "$PRIVATEKEY" > ~/key
gpg2 --import --batch ~/key
echo "verify"