Skip to content

feat: [~] #394 add spark 3.4.3 & 3.4.4 (#486) #312

feat: [~] #394 add spark 3.4.3 & 3.4.4 (#486)

feat: [~] #394 add spark 3.4.3 & 3.4.4 (#486) #312

Workflow file for this run

name: Release
on:
push:
branches: [ main ]
tags: [ "*" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
# GENERATE & PUBLISH DOC
publish_doc:
uses: ./.github/workflows/wc_publishSite.yml
with:
publish: "yes"
# BUILD, TEST & COVERAGE
build_coverage:
uses: ./.github/workflows/wc_build.yml
with:
matrix_filter: "[?isRelease==`release`]"
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# PUBLISH JARS AT MAVEN CENTRAL
matrix_prep:
if: github.repository == 'hablapps/doric'
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- id: set-matrix
uses: JoshuaTheMiller/[email protected]
with:
filter: "[?isRelease==`release`]"
mvn_release:
if: github.repository == 'hablapps/doric'
needs: [ "matrix_prep", "publish_doc", "build_coverage" ]
strategy:
max-parallel: 1
fail-fast: false
matrix: ${{fromJson(needs.matrix_prep.outputs.matrix)}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# SETUP & CACHE
- uses: coursier/[email protected]
with:
jvm: adopt:8
apps: sbt scala scalafmt # https://github.com/coursier/apps
- name: Coursier cache
uses: coursier/cache-action@v6
with:
extraKey: "${{ matrix.spark }}"
# MAVEN RELEASE
- name: Maven release 🎁
run: sbt ci-release -DsparkVersion=${{ matrix.spark }}
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- name: Publish on gh release the JARS
if: github.ref_type == 'tag'
uses: AButler/[email protected]
with:
files: 'core/target/scala-2.**/doric_*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
# CLEAN PROJECT BEFORE CACHE
- name: Cleaning for cache 🚯
uses: ./.github/actions/clean_cache