6.8.4 #101
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/wrapper-validation-action@v1 | |
- name: Set up Java 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
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 | |
plugins/graphql-kotlin-maven-plugin/build/integration/**/build.log | |
plugins/graphql-kotlin-maven-plugin/build/integration/**/target/surefire-reports | |
retention-days: 7 |