-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (28 loc) · 1.06 KB
/
performance-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
name: Performance release deploy
on:
release:
types: [ published ]
jobs:
deploy-performance:
runs-on: ubuntu-latest
# Only run when the tag begins with the string "performance-"
if: ${{ startsWith(github.event.release.tag_name, 'performance-') }}
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 performance test
run: ./gradlew :performance:performance:test -Pandroid.useAndroidX=true
- name: Deploy performance
run: ./gradlew :performance:performance:publishReleasePublicationToSonatypeStagingRepository -Pandroid.useAndroidX=true