Skip to content

[0.12.0-SNAPSHOT]

[0.12.0-SNAPSHOT] #101

name: CI Dev
on:
push:
paths:
- '**/workflows/*.yml'
- '**/java/**'
- '*.java'
- '*.gradle'
- '*.properties'
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
name: Publish Snapshot
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Code Style
run: './gradlew spotlessCheck'
- name: Build
run: './gradlew classes'
- name: Test
run: './gradlew test jacocoTestReport testCodeCoverageReport'
- name: Publish Snapshot
run: './gradlew publish'
env:
OSS_USERNAME: ${{ secrets.OSS_USERNAME }}
OSS_PASSWORD: ${{ secrets.OSS_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSS_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSS_SIGNING_PASSWORD }}