Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: publish.yml
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
package:
name: Build Package
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'

# Setup Maven with OAuth token
- name: Setup Maven with OAuth
id: setup-maven-oauth
uses: curityio/curity-maven-gh-action@v1
with:
client-secret: ${{ secrets.CURITY_CLI_CLIENT_SECRET }}

- name: Publish package
run: mvn deploy ${{ steps.setup-maven-oauth.outputs.maven-deploy-args }}