forked from scalalandio/chimney
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 894 Bytes
/
Copy pathrelease.yml
File metadata and controls
32 lines (28 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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.8.0-392'
apps: sbt
- name: Publish all projects
run: sbt ci-release
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}