File tree Expand file tree Collapse file tree 2 files changed +39
-6
lines changed Expand file tree Collapse file tree 2 files changed +39
-6
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,17 @@ jobs:
19
19
- uses : actions/cache@v3
20
20
id : gradle-cache
21
21
with :
22
- path : |
23
- ~/.gradle/caches
22
+ path : ~/.gradle/caches
24
23
key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
25
24
- uses : actions/cache@v3
26
25
id : gradle-wrapper-cache
27
26
with :
28
- path : |
29
- ~/.gradle/wrapper
30
- key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }}
27
+ path : ~/.gradle/wrapper
28
+ key : ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }}
31
29
- name : Build
32
30
uses : gradle/gradle-build-action@v2
33
31
with :
34
- arguments : build
32
+ arguments : build --info
35
33
- name : Dependency check
36
34
uses : gradle/gradle-build-action@v2
37
35
with :
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ tags :
5
+ - v[0-9]+.[0-9]+.[0-9]+
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ - name : Set up JDK 11
13
+ uses : actions/setup-java@v3
14
+ with :
15
+ java-version : ' 11'
16
+ distribution : ' temurin'
17
+ - uses : actions/cache@v3
18
+ id : gradle-cache
19
+ with :
20
+ path : ~/.gradle/caches
21
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
22
+ - uses : actions/cache@v3
23
+ id : gradle-wrapper-cache
24
+ with :
25
+ path : ~/.gradle/wrapper
26
+ key : ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }}
27
+ - name : Release
28
+ run : ./gradlew --info -Prelease.useLastTag=true final
29
+ env :
30
+ NETFLIX_OSS_SONATYPE_USERNAME : ${{ secrets.ORG_SONATYPE_USERNAME }}
31
+ NETFLIX_OSS_SONATYPE_PASSWORD : ${{ secrets.ORG_SONATYPE_PASSWORD }}
32
+ NETFLIX_OSS_SIGNING_KEY : ${{ secrets.ORG_SIGNING_KEY }}
33
+ NETFLIX_OSS_SIGNING_PASSWORD : ${{ secrets.ORG_SIGNING_PASSWORD }}
34
+ NETFLIX_OSS_REPO_USERNAME : ${{ secrets.ORG_USERNAME }}
35
+ NETFLIX_OSS_REPO_PASSWORD : ${{ secrets.ORG_OSS_PASSWORD }}
You can’t perform that action at this time.
0 commit comments