Skip to content

Update epimetheus to 0.6.0 (#6) #23

Update epimetheus to 0.6.0 (#6)

Update epimetheus to 0.6.0 (#6) #23

Workflow file for this run

name: release
concurrency: release
on:
pull_request:
branches: ['**']
push:
branches: [master]
tags: [v*]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
cache: sbt
# - name: Lint
# run: sbt scalafmtCheckAll scalafmtSbtCheck 'scalafix --check'
- name: Test
run: sbt +test
- name: Compile docs
run: sbt 'docs/mdoc'
release:
needs: [build]
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: sbt
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt', '**/project/*.scala', '**/project/*.sbt') }}
- name: Release
run: sbt ci-release
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}