Skip to content

Bump the all-maven-dependencies group across 2 directories with 2 upd… #12

Bump the all-maven-dependencies group across 2 directories with 2 upd…

Bump the all-maven-dependencies group across 2 directories with 2 upd… #12

# This workflow will build a SNAPSHOT package using Maven and then publish it to GitHub packages when a change to main is done
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Publish Maven package
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'sapmachine'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
run: mvn -ntp -B package
- name: Publish to GitHub Packages Apache Maven
working-directory: apis/data-service
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}