Skip to content

Commit 8fee10c

Browse files
jakubmalekJakub Malek
authored andcommitted
Fixed build action
Release action
1 parent 6252801 commit 8fee10c

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,17 @@ jobs:
1919
- uses: actions/cache@v3
2020
id: gradle-cache
2121
with:
22-
path: |
23-
~/.gradle/caches
22+
path: ~/.gradle/caches
2423
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
2524
- uses: actions/cache@v3
2625
id: gradle-wrapper-cache
2726
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/*') }}
3129
- name: Build
3230
uses: gradle/gradle-build-action@v2
3331
with:
34-
arguments: build
32+
arguments: build --info
3533
- name: Dependency check
3634
uses: gradle/gradle-build-action@v2
3735
with:

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 }}

0 commit comments

Comments
 (0)