From 8ebe00cbdef6996dc9340c710cd024a74672698d Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 29 Dec 2023 09:40:49 -0500 Subject: [PATCH] feat: add another actions config --- .github/workflows/release-config2.yml | 22 ++++++++++++++++++++++ releaserc.yml | 13 +++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/release-config2.yml create mode 100644 releaserc.yml diff --git a/.github/workflows/release-config2.yml b/.github/workflows/release-config2.yml new file mode 100644 index 0000000..95d42b0 --- /dev/null +++ b/.github/workflows/release-config2.yml @@ -0,0 +1,22 @@ +name: CI + +on: + push: + branches: + - main + +jobs: + semantic_release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Java + uses: actions/setup-java@v2 + with: + java-version: '11' + - name: Semantic release + run: npx semantic-release + env: + CI_COMMIT_BRANCH: ${{ github.ref }} + CI_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} diff --git a/releaserc.yml b/releaserc.yml new file mode 100644 index 0000000..a017e9a --- /dev/null +++ b/releaserc.yml @@ -0,0 +1,13 @@ +plugins: + - "@semantic-release/commit-analyzer" + - "@semantic-release/release-notes-generator" + - - "@semantic-release/exec" + - verifyReleaseCmd: 'mvn versions:set -DnewVersion="${nextRelease.version}" && echo "NEXT_VERSION=${nextRelease.version}" >> build.env' + - - "@semantic-release/git" + - assets: + - pom.xml + message: "chore(release): bump ${nextRelease.version}" + +branches: + - "main" + - "+([0-9])?(.{+([0-9]),x}).x" \ No newline at end of file