Skip to content

OPHYK-356 fix pom.xml #105

OPHYK-356 fix pom.xml

OPHYK-356 fix pom.xml #105

Workflow file for this run

name: java-utils
on:
workflow_dispatch:
release:
types: [ created ]
push:
paths-ignore:
- '**.md'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
cache: 'maven'
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn clean package
- name: Deploy
if: ${{ success() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn deploy --batch-mode -DskipTests