Skip to content

πŸ”– Update to version 0.0.5-SNAPSHOT #280

πŸ”– Update to version 0.0.5-SNAPSHOT

πŸ”– Update to version 0.0.5-SNAPSHOT #280

name: REST Services CI
on:
push:
paths:
- 'rest-services/**'
- '.github/workflows/rest-services-ci.yml'
workflow_dispatch:
jobs:
build:
name: Java ${{ matrix.java }} build
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
java: [ 21 ]
experimental: [false]
include:
- java: 25
experimental: true
steps:
- uses: actions/checkout@v5
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
distribution: 'oracle'
java-version: ${{ matrix.java }}
cache: 'maven'
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 -B package -s $GITHUB_WORKSPACE/settings.xml --file rest-services -P adobe-public
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Publish to GitHub Packages Apache Maven
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/tags/*') && !matrix.experimental # Only run on main branch or tags and non-experimental
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file rest-services
env:
GITHUB_TOKEN: ${{ github.token }}