diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..df2da2ea --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/pom.xml b/pom.xml index 9430de01..4aff8ed7 100644 --- a/pom.xml +++ b/pom.xml @@ -17,6 +17,13 @@ + + scm:git:${project.scm.url} + scm:git:${project.scm.url} + git@github.com:imx-org/imx-orchestrate.git + HEAD + + 17 17 @@ -46,6 +53,7 @@ 3.1.2 3.1.2 3.11.0 + 3.0.1 @@ -231,6 +239,10 @@ org.apache.maven.plugins maven-failsafe-plugin + + org.apache.maven.plugins + maven-release-plugin + @@ -285,6 +297,14 @@ + + org.apache.maven.plugins + maven-release-plugin + ${maven-release-plugin.version} + + v@{project.version} + + @@ -313,4 +333,12 @@ + + + + github + GitHub Packages + https://maven.pkg.github.com/imx-org/imx-orchestrate + +