Skip to content

Commit

Permalink
added maven package build
Browse files Browse the repository at this point in the history
  • Loading branch information
vakarisbk committed Nov 7, 2023
1 parent 3c74941 commit 3234c92
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/publish-maven-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish Maven Package

on:
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: Check out the code
uses: actions/checkout@v2

- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'

- name: Build with Maven
run: mvn clean package -B -V -e -Pspark3 -Pscala-2.12 -Phadoop3 -DskipTests -T1C

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.version }}
release_name: ${{ github.event.inputs.release_name }}
draft: ${{ github.event.inputs.is_draft }}
prerelease: ${{ github.event.inputs.is_prerelease }}

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./assembly/target/*.zip
asset_name: livy-0.9-snapshot.zip
asset_content_type: application/zip

0 comments on commit 3234c92

Please sign in to comment.