jAI Workflow Snapshot-release #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: jAI Workflow Snapshot-release | |
on: | |
workflow_dispatch: | |
jobs: | |
snapshot-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Install gpg secret key | |
shell: bash | |
run: | | |
# Install gpg secret key | |
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import | |
# Verify gpg secret key | |
gpg --list-secret-keys --keyid-format LONG | |
- name: Setup Maven settings | |
shell: bash | |
run: | | |
# Setup maven settings | |
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.OSSRH_USERNAME }}</username><password>${{ secrets.OSSRH_PASSWORD }}</password></server></servers><profiles><profile><id>ossrh</id><activation><activeByDefault>true</activeByDefault></activation><properties><gpg.executable>gpg</gpg.executable><gpg.passphrase>${{ secrets.GPG_PASSPHRASE }}</gpg.passphrase></properties></profile></profiles></settings>" > ~/.m2/settings.xml | |
- name: Publish SNAPSHOT to Sonatype (Maven Central) | |
run: | | |
cat /home/runner/.m2/settings.xml | |
mvn -B --fail-at-end \ | |
-DskipTests -DskipITs \ | |
clean deploy | |