Skip to content

Fix publishing again #3

Fix publishing again

Fix publishing again #3

Workflow file for this run

name: Sonatype Release
on:
push:
branches: [master]
tags: ["*"]
jobs:
release-tag:
runs-on: ubuntu-latest
name: ${{ startsWith(github.ref, 'refs/tags/') && 'Publish Tag as Release' || 'Publish Snapshot' }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: coursier/cache-action@v8
- name: Import GPG key for signing the release
uses: crazy-max/ghaction-import-gpg@v7
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- uses: coursier/setup-action@v3.0.0
with:
jvm: "temurin:1.17.0.15"
apps: sbt
- name: Publish all projects
run: sbt ci-release
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}