Skip to content

updated sama_annotations version #13

updated sama_annotations version

updated sama_annotations version #13

name: Publish to mavenCentral
# Controls when the workflow will run
on:
# Run this workflow automatically when a branch starting with "releases/" is pushed
push:
branches:
- releases/**
tags:
- v**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
publish:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Setup Java Version
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Create gpg file
run:
# Files in $HOME (/home/runner/) in github actions are maintained for the full job duration
echo "${{secrets.SONATYPE_GPG_CONTENT}}" | base64 -d > /home/runner/private.pgp
- name: Build
run:
make assembleLibrary
- name: Publish
run:
make publish
env:
SONATYPE_USER: '${{secrets.SONATYPE_USERTOKEN_USER}}'
SONATYPE_PWD: '${{secrets.SONATYPE_USERTOKEN_PASSWORD}}'
SONATYPE_GPG_KEY: '${{secrets.SONATYPE_GPG_KEY}}'
SONATYPE_GPG_PWD: '${{secrets.SONATYPE_GPG_PWD}}'
SONATYPE_GPG_PATH: "/home/runner/private.pgp"
- name: Cleanup
run:
rm -f /home/runner/private.pgp