-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4a3cb3
commit 9861f36
Showing
2 changed files
with
49 additions
and
0 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,21 @@ | ||
name: Release | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
cache: maven | ||
- name: Release | ||
run: mvn -B release:prepare release:perform | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,13 @@ | |
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<connection>scm:git:${project.scm.url}</connection> | ||
<developerConnection>scm:git:${project.scm.url}</developerConnection> | ||
<url>[email protected]:imx-org/imx-orchestrate.git</url> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
<properties> | ||
<maven.compiler.source>17</maven.compiler.source> | ||
<maven.compiler.target>17</maven.compiler.target> | ||
|
@@ -46,6 +53,7 @@ | |
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version> | ||
<maven-failsafe-plugin.version>3.1.2</maven-failsafe-plugin.version> | ||
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version> | ||
<maven-release-plugin.version>3.0.1</maven-release-plugin.version> | ||
<!-- Dummy property to avoid JVM startup error in IDEs --> | ||
<surefire.jacoco.args/> | ||
</properties> | ||
|
@@ -231,6 +239,10 @@ | |
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-failsafe-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
<pluginManagement> | ||
<plugins> | ||
|
@@ -285,6 +297,14 @@ | |
</annotationProcessorPaths> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>${maven-release-plugin.version}</version> | ||
<configuration> | ||
<tagNameFormat>v@{project.version}</tagNameFormat> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
|
@@ -313,4 +333,12 @@ | |
</build> | ||
</profile> | ||
</profiles> | ||
|
||
<distributionManagement> | ||
<repository> | ||
<id>github</id> | ||
<name>GitHub Packages</name> | ||
<url>https://maven.pkg.github.com/imx-org/imx-orchestrate</url> | ||
</repository> | ||
</distributionManagement> | ||
</project> |