File tree 2 files changed +64
-3
lines changed
2 files changed +64
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Java Semantic Kernel Package
2
+
3
+ # Triggers the workflow on merging a PR
4
+ on :
5
+ pull_request :
6
+ types :
7
+ - closed
8
+ branches : [ "main" ]
9
+ paths :
10
+ - ' java/**'
11
+
12
+ permissions :
13
+ contents : read
14
+
15
+ jobs :
16
+ if_merged :
17
+ if : github.event.pull_request.merged == true
18
+ runs-on : ubuntu-latest
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+
22
+ # Sets up the specified JDK version from the matrix
23
+ - uses : actions/setup-java@v4
24
+ with :
25
+ java-version : 8
26
+ distribution : microsoft
27
+ cache : maven
28
+
29
+ # Builds the project with Maven using the matrix JDK version
30
+ - name : Build with Maven
31
+ run : ./mvnw -B -DskipTests -Pcompile-jdk8 -P-compile-jdk17 -Pgithub-packages clean deploy --file pom.xml
32
+ working-directory : java
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
5
5
6
<modelVersion >4.0.0</modelVersion >
6
7
663
664
<licenseHeader >
664
665
<content >// Copyright (c) Microsoft. All rights reserved.</content >
665
666
</licenseHeader >
666
- <toggleOffOn />
667
+ <toggleOffOn />
667
668
</java >
668
669
</configuration >
669
670
</plugin >
762
763
<name >${releaseRepoName} </name >
763
764
</repository >
764
765
</distributionManagement >
765
-
766
+ </profile >
767
+ <profile >
768
+ <id >github-packages</id >
769
+ <activation >
770
+ <activeByDefault >false</activeByDefault >
771
+ </activation >
772
+ <distributionManagement >
773
+ <repository >
774
+ <id >github</id >
775
+ <name >GitHub Packages</name >
776
+ <url >https://maven.pkg.github.com/microsoft/semantic-kernel-java</url >
777
+ </repository >
778
+ </distributionManagement >
779
+ <repositories >
780
+ <repository >
781
+ <id >central</id >
782
+ <url >https://repo1.maven.org/maven2</url >
783
+ </repository >
784
+ <repository >
785
+ <id >github</id >
786
+ <name >GitHub Packages</name >
787
+ <url >https://maven.pkg.github.com/microsoft/semantic-kernel-java</url >
788
+ <snapshots >
789
+ <enabled >true</enabled >
790
+ </snapshots >
791
+ </repository >
792
+ </repositories >
766
793
</profile >
767
794
</profiles >
768
795
You can’t perform that action at this time.
0 commit comments