Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

fix: pom

fix: pom #2

Workflow file for this run

name: Publish
on:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
jobs:
publish:
runs-on: ubuntu-latest
environment: Production
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- name: Maven Package
run: mvn clean package
- name: Maven Publish
run: mvn --batch-mode clean deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}