From 70fa48ca8ca8f91e45f137622841bb211d9b237d Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sun, 5 Jul 2026 20:10:49 +0300 Subject: [PATCH] chore: Break out release clean step with an explanation why it's required --- .github/workflows/release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bcbb6cad1..a9759182a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,10 +28,20 @@ jobs: distribution: 'temurin' java-version: '21' + # Verify the build isn't broken. This is required for + # chore commits where semantic release doesn't run. - name: Build env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./gradlew :patches:buildAndroid generatePatchesList clean + run: ./gradlew :patches:buildAndroid + + # Cleaning up is necessary otherwise semantic release will create two artifacts, + # One artifact of the current release number and a second of the new release. + # Semantic release runs its own compilation step and + - name: Cleanup build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: ./gradlew clean - name: Setup Node.js uses: actions/setup-node@v6