Skip to content

1.8.2

1.8.2 #8

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
name: Publish CI
on:
release:
types:
- created
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Set up JDK 8
uses: actions/[email protected]
with:
distribution: "temurin"
java-version: "8"
server-id: "github" # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: "${{ github.workspace }}" # location for the settings.xml file
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4
- name: Build with Gradle
uses: gradle/gradle-build-action@982da8e78c05368c70dac0351bb82647a9e9a5d2
with:
arguments: build
- name: Publish to Gradle portal
uses: gradle/gradle-build-action@982da8e78c05368c70dac0351bb82647a9e9a5d2
with:
arguments: |-
publishPlugin
-Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}