Skip to content

Prepare for release 3.0.0 #11

Prepare for release 3.0.0

Prepare for release 3.0.0 #11

Workflow file for this run

name: Deploy
on:
push:
branches:
- 'release/**'
pull_request:
branches:
- 'release/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Setup build cache
uses: actions/cache@v1.1.0
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run spotless
run: ./gradlew spotlessCheck
- name: Create local maven artifacts
env:
PGP_SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
PGP_SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew publishAdvancedBuildVersionPublicationToMavenLocal
- name: Run tests with code coverage
run: ./gradlew test
- name: Deploy to maven
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
PGP_SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew publishAdvancedBuildVersionPublicationToMavenRepository