Skip to content

v6.16.2-SNAPSHOT

v6.16.2-SNAPSHOT #518

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 17 ]
fail-fast: true
steps:
- uses: actions/checkout@v3
- name: Setup JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- uses: actions/cache@v3
with:
path: '**/.gradle'
key: ${{ runner.os }}-gradle-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/VersionConstants.kt', '**/build.gradle.kts', '**/gradle-wrapper.properties') }}
- name: Build
run: ./gradlew clean build --stacktrace
- name: Upload artififacts
uses: actions/upload-artifact@v3
with:
name: Insights
path: jars/*.jar
retention-days: 90
- name: Publish
if: ${{ github.event_name == 'push' }}
env:
FVDH_USERNAME: ${{ secrets.FVDH_USERNAME }}
FVDH_TOKEN: ${{ secrets.FVDH_TOKEN }}
run: ./gradlew publish --stacktrace