Skip to content

Publish package SwaggerHub Gradle Plugin #4

Publish package SwaggerHub Gradle Plugin

Publish package SwaggerHub Gradle Plugin #4

Workflow file for this run

name: Publish package SwaggerHub Gradle Plugin
on:
workflow_dispatch:
jobs:
publish-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: Publish plugin
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
run: |
./gradlew -Dgradle.publish.key=$GRADLE_PUBLISH_KEY -Dgradle.publish.secret=$GRADLE_PUBLISH_SECRET publishPlugins