-
Notifications
You must be signed in to change notification settings - Fork 12
27 lines (27 loc) · 965 Bytes
/
release.yml
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
name: Release
on:
release:
types: [ published ]
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
scala-version: [ 2.12.13, 2.13.8 ]
steps:
- uses: actions/checkout@v3.6.0
with:
fetch-depth: 100
- name: Fetch tags
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
- uses: olafurpg/setup-scala@v13
with:
java-version: adopt@1.11
- name: Sonatype publishing ${{ github.ref }}
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -Pversion="${{ github.event.release.tag_name }}" --info
env:
SCALA_VERSION: ${{ matrix.scala-version }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}