From bf0bdc2860f2433152c67899dacb768697095f4c Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Fri, 17 Nov 2023 07:18:11 +0800 Subject: [PATCH 1/2] Update create_release.yml --- .github/workflows/create_release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index eca6eabb218..2cbdeefd05a 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -27,14 +27,14 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-maven- - name: Create Release - env: - # GH_USER= - GH_USER: ${{ secrets.GH_USER }} - # GH_TOKEN= - # - makes release commits and tags - # - needs repo:status, public_repo - # - referenced in .settings.xml - GH_TOKEN: ${{ secrets.GH_TOKEN }} +# env: +# # GH_USER= +# GH_USER: ${{ secrets.GH_USER }} +# # GH_TOKEN= +# # - makes release commits and tags +# # - needs repo:status, public_repo +# # - referenced in .settings.xml +# GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | # GITHUB_REF will be refs/tags/release-MAJOR.MINOR.PATCH - build-bin/git/login_git && +# build-bin/git/login_git && build-bin/maven/maven_release $(echo ${GITHUB_REF} | cut -d/ -f 3) From fa93451e6ef0287a96c5687a097c13ea71984ee3 Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Fri, 17 Nov 2023 07:19:44 +0800 Subject: [PATCH 2/2] Update maven_release --- build-bin/maven/maven_release | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-bin/maven/maven_release b/build-bin/maven/maven_release index 3df408180c6..6f52cc0ed26 100755 --- a/build-bin/maven/maven_release +++ b/build-bin/maven/maven_release @@ -36,7 +36,9 @@ if [ -z "$branch_name" ]; then echo "Unable to determine a valid branch. Auto-selecting the default branch: $default_branch" branch_name=$default_branch fi +echo "Ready to checkout branch $branch_name" git checkout "$branch_name" +git submodule update --init --recursive # Prepare and push release commits and the version tag (N.N.N), which triggers deployment. -./mvnw --batch-mode -nsu -DreleaseVersion=${release_version} -Denforcer.fail=false -Darguments="-DskipTests -Denforcer.fail=false" release:prepare +./mvnw --batch-mode -nsu -DreleaseVersion=${release_version} -Denforcer.fail=false -Darguments="-DskipTests -Dcheckstyle.skip=true -Denforcer.fail=false" release:prepare