diff --git a/.github/workflows/create-release-branch.yml b/.github/workflows/build-rc-workflow.yml similarity index 67% rename from .github/workflows/create-release-branch.yml rename to .github/workflows/build-rc-workflow.yml index 7dde004eb..7a829b0c6 100644 --- a/.github/workflows/create-release-branch.yml +++ b/.github/workflows/build-rc-workflow.yml @@ -1,4 +1,4 @@ -name: Test - Cut Release Branch +name: Pre-Release - Create New Release Candidates env: SONATYPE_USERNAME: embrace-io @@ -12,11 +12,8 @@ env: on: workflow_dispatch: inputs: - version_to_release: - description: 'Version to release. Specify only, without the patch number, e.g. 6.3. A new branch called "release/" will be created where the release-specific changes will be committed.' - required: true - next_version: - description: 'Next Version. Specify , e.g. 6.4.0 (Do NOT include -SNAPSHOT, will be added automatically)' + version_of_rc: + description: 'Version to create new RC for. Specify only, e.g. 6.3' required: true jobs: @@ -43,13 +40,9 @@ jobs: - name: Checkout SDK uses: actions/checkout@v4 with: - ref: master + ref: release/${{ github.event.inputs.version_of_rc }} token: ${{ secrets.CD_GITHUB_TOKEN }} - - name: Create Release Branch "release/${{ github.event.inputs.version_to_release }}" - run: | - git checkout -b release/${{ github.event.inputs.version_to_release }} - - uses: actions/cache@v4 with: path: | @@ -77,12 +70,9 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v2 - - name: Set Release Version + - name: Generate SDK RC - Publish and close Sonatype repository run: | - sed -i -r "s#version = ([^\']+)#version = ${{ github.event.inputs.version_to_release }}.0#" gradle.properties - git add gradle.properties - git commit -m "CI/CD: change version to be released: ${{ github.event.inputs.version_to_release }}.0" - git push + ./gradlew clean check publishReleasePublicationToSonatype closeSonatypeStagingRepository -Dorg.gradle.parallel=false --stacktrace - name: Archive Test Results if: ${{ always() }} @@ -95,19 +85,12 @@ jobs: uses: actions/checkout@v4 with: repository: embrace-io/embrace-swazzler3 - ref: master + ref: release/${{ github.event.inputs.version_of_rc }} token: ${{ secrets.CD_GITHUB_TOKEN }} - - name: Create Swazzler Release Branch "release/${{ github.event.inputs.version_to_release }}" - run: | - git checkout -b release/${{ github.event.inputs.version_to_release }} - - - name: Set Release Version + - name: Generate Swazzler RC - Publish and Close repository run: | - sed -i -r "s#version = ([^\']+)#version = ${{ github.event.inputs.version_to_release }}.0#" gradle.properties - git add gradle.properties - git commit -m "CI/CD: change version to be released: ${{ github.event.inputs.version_to_release }}.0" - git push + ./gradlew clean check publishToSonatype closeSonatypeStagingRepository -Dorg.gradle.parallel=false --stacktrace - name: Cleanup Gradle Cache # Based on https://docs.github.com/en/actions/guides/building-and-testing-java-with-gradle#caching-dependencies diff --git a/.github/workflows/pre-release-workflow.yml b/.github/workflows/pre-release-workflow.yml index 79eee3130..255603fdb 100644 --- a/.github/workflows/pre-release-workflow.yml +++ b/.github/workflows/pre-release-workflow.yml @@ -1,4 +1,4 @@ -name: Release - Cut Release Branch and Create Release Candidate +name: Pre-Release - Cut Release Branch and Create Release Candidates env: SONATYPE_USERNAME: embrace-io @@ -16,7 +16,7 @@ on: description: 'Version to release. Specify only, without the patch number, e.g. 6.3. A new branch called "release/" will be created where the release-specific changes will be committed.' required: true next_version: - description: 'Next Version. Specify , e.g. 6.4.0 (Do NOT include -SNAPSHOT, will be added automatically)' + description: 'Next version. Specify , e.g. 6.4 (Do NOT include -SNAPSHOT, will be added automatically)' required: true jobs: