Fix integration tests #6
Workflow file for this run
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
name: Deploy Java Semantic Kernel Package | |
# Triggers the workflow on merging a PR | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: [ "main" ] | |
jobs: | |
if_merged: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Sets up the specified JDK version from the matrix | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: microsoft | |
cache: maven | |
# Builds the project with Maven using the matrix JDK version | |
- name: Deploy to github pacakges | |
run: ./mvnw -B -DskipTests -Pcompile-jdk8 -P-compile-jdk17 -Pgithub-packages clean deploy --file pom.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build artifacts | |
run: ./mvnw -B -DskipTests -Pcompile-jdk8 -P-compile-jdk17 clean deploy --file pom.xml -DaltDeploymentRepository=local::file:///tmp/target/staging-deploy | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts | |
path: /tmp/target/staging-deploy |