Skip to content

Commit d99507e

Browse files
MK8S-25: Add clean step before build in GitHub Actions
Fix cleanup issues by running './doit.sh clean' before the main build: - Ensures all clean functions are called, including index.html file cleanup - Prevents directory removal failures caused by leftover index.html files - Provides consistent clean state for each build in CI/CD - Addresses root cause of packaging cleanup failures in e2e tests This relies on doit's built-in clean mechanism to properly coordinate cleanup across all tasks and their dependencies.
1 parent e592af6 commit d99507e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ jobs:
8181
fetch-depth: 0
8282
- name: Set safe directory (since container is root and not user 1001)
8383
run: git config --global --add safe.directory ${{ github.workspace }}
84+
- name: Clean previous build artifacts
85+
run: cd "${{ github.workspace }}" && ./doit.sh clean
8486
- name: Build everything
8587
run: cd "${{ github.workspace }}" && ./doit.sh -n 4 --verbosity 2 --failure-verbosity 2
8688
- name: Prepare artifacts

0 commit comments

Comments
 (0)