Skip to content

Update publishing (#140) #253

Update publishing (#140)

Update publishing (#140) #253

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
jdk: [8]
python: [3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@master
- uses: coursier/cache-action@v6.3
- uses: coursier/setup-action@v1
with:
jvm: ${{ matrix.jdk }}
apps: sbtn sbt
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Test
run: sbt +test
shell: bash
publish:
runs-on: ubuntu-latest
needs: [test]
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: sbt/setup-sbt@v1
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}