Skip to content

Clarify and reformat publishing command #193

Clarify and reformat publishing command

Clarify and reformat publishing command #193

Workflow file for this run

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/wrapper-validation-action@v1
- 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

Check failure on line 38 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 38
- name: Upload Artifacts
if: contains(github.ref, '/tags/v') && matrix.spark == '3.5.0'
run: >
./gradlew publishMavenPublicationToSonatypeRepository
# In Parallel mode, more than one repository will be created in sonatype, each incomplete
-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