Skip to content

Bump crazy-max/ghaction-import-gpg from 5 to 6 in /.github/workflows #22

Bump crazy-max/ghaction-import-gpg from 5 to 6 in /.github/workflows

Bump crazy-max/ghaction-import-gpg from 5 to 6 in /.github/workflows #22

Workflow file for this run

# SPDX-FileCopyrightText: 2023 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0
# This workflow will publish a Java project with Maven
# See https://github.com/jonashackt/github-actions-release-maven
name: Publish Snapshot
on:
push:
branches: ['main']
jobs:
publish-snapshot:
runs-on: ubuntu-22.04
if: github.repository == 'secureCodeBox/defectdojo-client-java'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build & Publish to Maven Central
run: mvn -U -B clean deploy # -U: force updates for dependencies, -B: no user input
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}