Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Merge pull request #687 from rgallardo-netflix/simpler-collection-han… #33

Merge pull request #687 from rgallardo-netflix/simpler-collection-han…

Merge pull request #687 from rgallardo-netflix/simpler-collection-han… #33

name: "Publish snapshot to NetflixOSS and Maven Central"
on:
push:
branches:
- 2.x
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '8' # For publishing build with 8 for compatibility
distribution: 'zulu'
- uses: actions/cache@v3
id: gradle-cache
with:
path: |
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
- uses: actions/cache@v3
id: gradle-wrapper-cache
with:
path: |
~/.gradle/wrapper
key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }}
- name: Build
run: ./gradlew build snapshot
env:
NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }}
NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }}
NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }}
NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }}