feat: P4ADEV-1633 classify-iuv-activity-retrieve-tes-iuf #612
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: Gradle publish package | |
on: | |
workflow_run: | |
workflows: [ release ] | |
types: | |
- completed | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Check SNAPSHOT version | |
if: github.ref_name != 'main' | |
run: grep '\-SNAPSHOT$' ./version | |
- name: Set permissions for Gradle Wrapper | |
run: chmod +x ./gradlew | |
- name: Setup Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1 | |
with: | |
distribution: 'corretto' | |
java-version: 17 | |
- name: Build and Publish with Gradle | |
run: ./gradlew clean build publish | |
env: | |
USERNAME: ${{ github.actor }} | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |