OPHYK-356 update java-http dependencies to fix vulnerabilities and pu… #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |