Skip to content

Maven Package

Maven Package #3

Workflow file for this run

name: Maven Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Maven
run: mvn clean install
- name: Publish to GitHub Packages
run: mvn deploy -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/gabrielldn/java-api-with-otlp-sdk
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.TOKEN_GITHUB }}