Skip to content

8.0.0

8.0.0 #108

Workflow file for this run

name: Release Code
on:
release:
types: [ published ]
jobs:
release-code:
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.repository == 'ExpediaGroup/graphql-kotlin'
steps:
- uses: actions/checkout@v3
- uses: gradle/actions/wrapper-validation@v3
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Build library with Gradle
run: ./gradlew clean build
- name: Publish library with Gradle
run: |
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
echo "New version: ${NEW_VERSION}"
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository publishPlugins -Pversion=${NEW_VERSION}
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
PLUGIN_PORTAL_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
PLUGIN_PORTAL_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
- name: Archive failure build reports
uses: actions/upload-artifact@v3
if: failure()
with:
name: build-reports
path: |
./**/build/reports
retention-days: 7