Add outputSize and name to the Stage metadata #203
Workflow file for this run
This file contains hidden or 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: Build and Publish | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | |
| jobs: | |
| build: | |
| name: Build and Publish | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| scala: [ '2.12.15', '2.13.8' ] | |
| spark: [ '3.2.4', '3.3.3', '3.4.1', '3.5.0' ] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@v3 | |
| - name: Configure JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 11 | |
| cache: 'gradle' | |
| - name: Build and Test | |
| env: | |
| JOOM_CLOUD_TOKEN: ${{ secrets.JOOM_CLOUD_TOKEN }} | |
| run: ./gradlew build -Pscala.version=${{ matrix.scala }} -Pspark.version=${{ matrix.spark }} -i | |
| - name: Upload Artifacts | |
| if: contains(github.ref, '/tags/v') && matrix.spark == '3.5.0' | |
| # In Parallel mode, more than one repository will be created in sonatype, each incomplete, | |
| # so disable it. | |
| run: > | |
| ./gradlew publishMavenPublicationToSonatypeRepository | |
| -Dorg.gradle.parallel=false | |
| -Pscala.version=${{ matrix.scala }} | |
| -Pspark.version=${{ matrix.spark}} | |
| -Ppublication.repository.maven.name=Sonatype | |
| -Ppublication.repository.maven.url=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ | |
| -Ppublication.repository.maven.username=${{ secrets.SONATYPE_USERNAME }} | |
| -Ppublication.repository.maven.password=${{ secrets.SONATYPE_PASSWORD }} | |
| -Ppublication.signing.keyId=${{ secrets.SIGNING_KEY_ID }} | |
| -Ppublication.signing.password=${{ secrets.SIGNING_PASSWORD }} | |
| -Ppublication.signing.secretKey='${{ secrets.SIGNING_SECRET_KEY }}' -i |