Skip to content

v5.0.0

v5.0.0 #32

Workflow file for this run

name: Release
on:
release:
types: [ published ]
jobs:
release-code:
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.repository == 'apollographql/federation-jvm'
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'
- name: Build libraries with Gradle
run: ./gradlew clean build
- name: Publish libraries with Gradle
run: |
NEW_VERSION=$(echo "${GITHUB_REF}" | sed 's/.*\/v//')
echo "New version: ${NEW_VERSION}"
./gradlew publishToSonatype closeAndReleaseStagingRepositories -Pversion=${NEW_VERSION}
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
COM_APOLLOGRAPHQL_PROFILE_ID: ${{ secrets.COM_APOLLOGRAPHQL_PROFILE_ID }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PRIVATE_KEY_PASSWORD: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}
- name: Archive failure build reports
uses: actions/upload-artifact@v4
if: failure()
with:
name: build-reports
path: |
./**/build/reports
retention-days: 7