-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.71 KB
/
snapshots-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
name: Snapshots release deploy
on:
release:
types: [ published ]
jobs:
deploy-snapshots:
runs-on: ubuntu-latest
# Only run when the tag begins with the string "snapshots-"
if: ${{ startsWith(github.event.release.tag_name, 'snapshots-') }}
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingPassword }}
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Sanity check snapshots test
run: ./gradlew :snapshots:snapshots:test -Pandroid.useAndroidX=true
- name: Sanity check snapshots-processor test
run: ./gradlew :snapshots:snapshots-processor:test
- name: Sanity check snapshots-shared test
run: ./gradlew :snapshots:snapshots-shared:test
- name: Deploy snapshots-shared
run: ./gradlew :snapshots:snapshots-shared:publishReleasePublicationToSonatypeStagingRepository -Pandroid.useAndroidX=true
- name: Deploy snapshots-annotations
run: ./gradlew :snapshots:snapshots-annotations:publishReleasePublicationToSonatypeStagingRepository
- name: Deploy snapshots
run: ./gradlew :snapshots:snapshots:publishReleasePublicationToSonatypeStagingRepository -Pandroid.useAndroidX=true
- name: Deploy snapshots-processor
run: ./gradlew :snapshots:snapshots-processor:publishReleasePublicationToSonatypeStagingRepository