-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from johnoliver/package
Publish package to github packages
- Loading branch information
Showing
2 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Deploy Java Semantic Kernel Package | ||
|
||
# Triggers the workflow on merging a PR | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: [ "main" ] | ||
paths: | ||
- 'java/**' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
if_merged: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# Sets up the specified JDK version from the matrix | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 8 | ||
distribution: microsoft | ||
cache: maven | ||
|
||
# Builds the project with Maven using the matrix JDK version | ||
- name: Build with Maven | ||
run: ./mvnw -B -DskipTests -Pcompile-jdk8 -P-compile-jdk17 -Pgithub-packages clean deploy --file pom.xml | ||
working-directory: java | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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