Skip to content

Commit

Permalink
New workflow for publishing snapshots (#1838)
Browse files Browse the repository at this point in the history
  • Loading branch information
jguerra authored Oct 23, 2024
1 parent 1d99787 commit e940a09
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/branch_snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Branch Snapshot

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to publish snapshot of'
required: true
default: 'master'

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 }}
- 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 }}

0 comments on commit e940a09

Please sign in to comment.