Skip to content

Build and Publish Compiler Plugin #10

Build and Publish Compiler Plugin

Build and Publish Compiler Plugin #10

Workflow file for this run

name: Build and Publish Compiler Plugin
on:
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build
run: |
./gradlew build
- name: Publish to Maven Central
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
VERSION: ${{ github.event.inputs.version }}
run: |
./gradlew publish