-
-
Notifications
You must be signed in to change notification settings - Fork 232
51 lines (44 loc) · 1.14 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Release
on:
push:
tags:
- test_release_*
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- java: 14
scala: 2
- java: 8
scala: 3
name: Scala v${{ matrix.scala }} / Java v${{ matrix.java }}
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Scala
uses: japgolly/[email protected]
with:
java-version: adopt@1.${{ matrix.java }}
- name: Build and test
shell: bash
run: bin/ci ${{ matrix.scala }}
release:
needs: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Scala
uses: japgolly/[email protected]
- name: Release
run: cd library && sbt -v -J-Xmx6g ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}