Branch Snapshot #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Branch Snapshot | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch to publish snapshot of' | |
required: true | |
default: 'master' | |
repository: | |
description: 'Repository name (override for forks)' | |
required: false | |
default: Netflix/zuul | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Git | |
run: | | |
git config --global user.name 'Zuul Build' | |
git config --global user.email '[email protected]' | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.inputs.branch }} | |
repository: ${{ github.event.inputs.repository }} | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'gradle' | |
- name: Build snapshot | |
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 }} |