Skip to content

feat: [+] #376 spark v 3.2.4 & update latest release (#491) #316

feat: [+] #376 spark v 3.2.4 & update latest release (#491)

feat: [+] #376 spark v 3.2.4 & update latest release (#491) #316

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 }}
# CLEAN PROJECT BEFORE CACHE
- name: Cleaning for cache 🚯
uses: ./.github/actions/clean_cache