chore: Break out release clean step with an explanation why it's required

This commit is contained in:
LisoUseInAIKyrios committed 2026-07-05 20:11:17 +03:00
1 parent ca5f35945f
commit 70fa48ca8c
1 file changed
+11 -1
+11 -1
View File
@@ -28,10 +28,20 @@ jobs:
distribution: 'temurin' distribution: 'temurin'
java-version: '21' java-version: '21'
# Verify the build isn't broken. This is required for
# chore commits where semantic release doesn't run.
- name: Build - name: Build
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 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 - name: Setup Node.js
uses: actions/setup-node@v6 uses: actions/setup-node@v6