-
Notifications
You must be signed in to change notification settings - Fork 2.4k
43 lines (41 loc) · 1.35 KB
/
branch_snapshot.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
36
37
38
39
40
41
42
43
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
version:
description: 'The version number to use'
required: true
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 -Prelease.version=${{ github.event.inputs.version }}
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 }}