Skip to content

Workflow file for this run

name: Publish package to the Gradle plugin repo
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 11
- shell: bash
env:
PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
run: |
echo "gradle.publish.key=$PUBLISH_KEY" > gradle.properties
echo "gradle.publish.secret=$PUBLISH_SECRET" >> gradle.properties
- name: Publish package
run: ./gradlew publishPlugins