Skip to content

ScalaSteward: Update mdoc, sbt-mdoc from 2.5.3 to 2.5.4 (#465) #304

ScalaSteward: Update mdoc, sbt-mdoc from 2.5.3 to 2.5.4 (#465)

ScalaSteward: Update mdoc, sbt-mdoc from 2.5.3 to 2.5.4 (#465) #304

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/conditional-build-matrix@v2.0.1
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/setup-action@v1.3.5
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/upload-release-assets@v3.0
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