Skip to content

Merge pull request #143 from littlerobots/fix/gradle-publish-plugin #221

Merge pull request #143 from littlerobots/fix/gradle-publish-plugin

Merge pull request #143 from littlerobots/fix/gradle-publish-plugin #221

Workflow file for this run

name: build & test
on:
push:
branches:
- main
pull_request:
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Validate checksum gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: "Set up JDK 11"
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
- name: "Setup Gradle"
uses: gradle/gradle-build-action@v2
- name: Build
run: ./gradlew build
- name: Publish snapshot
if: ${{ (github.ref == 'refs/heads/main') }}
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.NEXUS_USER_NAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew --no-daemon --no-parallel publishSnapshot