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