Skip to content

Build and Upload Archives On Demand #3

Build and Upload Archives On Demand

Build and Upload Archives On Demand #3

name: Build and Upload Archives On Demand
# Run this workflow when triggered manually
on: workflow_dispatch
jobs:
build:
# Name the Job
name: Build tagged commit and upload an archive
# Set the type of machine to run on
runs-on: ubuntu-latest
if: github.repository == 'linkedin/venice'
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: clean assemble
- name: package artifacts
run: mkdir staging && find . -name "*.jar" -exec cp "{}" staging \;
- uses: actions/upload-artifact@v3
with:
name: Package
path: staging