-
Notifications
You must be signed in to change notification settings - Fork 8
66 lines (60 loc) · 1.91 KB
/
publish-snapshots.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Publish Snapshots
on:
push:
branches:
- master
jobs:
# Run Gradle Wrapper Validation to verify the wrapper's checksum
gradle-validation:
name: Gradle Wrapper
runs-on: ubuntu-latest
if: github.repository_owner == 'taymyr'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was
fetch-depth: 0
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
publish-artifacts:
name: Publish Artifacts for Scala ${{ matrix.scala }}
runs-on: ubuntu-latest
if: github.repository_owner == 'taymyr'
needs: gradle-validation
strategy:
matrix:
include:
- scala: "2.11"
lagom: "1.4.15"
- scala: "2.12"
lagom: "1.5.5"
- scala: "2.13"
lagom: "1.6.4"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '8'
check-latest: true
cache: 'gradle'
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Publish Snapshots
run: >-
./gradlew --no-daemon version publishToSonatype -x test
-PscalaBinaryVersion=${{ matrix.scala }} -PlagomVersion=${{ matrix.lagom }}
-Psigning.gnupg.keyName=$GPG_KEY_ID
-Psigning.gnupg.passphrase="$GPG_PASSPHRASE"
-PsonatypeUsername="$OSSRH_USERNAME"
-PsonatypePassword="$OSSRH_TOKEN"
env:
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}