From 6682a63af38ff19c1b73eaa26ceddad5b1cb0dc9 Mon Sep 17 00:00:00 2001 From: Victor Hugo dos Santos Date: Tue, 16 Jun 2026 21:18:25 -0300 Subject: [PATCH] Enhance release workflow by adding a step to free disk space before publishing packages. This step ensures sufficient storage by removing unnecessary directories, improving the overall build process efficiency. --- .github/workflows/release_build_infisical_cli.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release_build_infisical_cli.yml b/.github/workflows/release_build_infisical_cli.yml index 9c8e3656..06fcfc45 100644 --- a/.github/workflows/release_build_infisical_cli.yml +++ b/.github/workflows/release_build_infisical_cli.yml @@ -253,6 +253,14 @@ jobs: chmod 600 /tmp/infisical-apk.rsa env: APK_PRIVATE_KEY: ${{ secrets.APK_PRIVATE_KEY }} + # upload_to_s3.sh syncs the whole apk repo down before rebuilding the index, and + # that repo holds the full backfilled history. + - name: Free disk space before publish + if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && !inputs.dry_run) + run: | + df -h / + sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL || true + df -h / - name: Publish packages to repositories if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && !inputs.dry_run) run: bash upload_to_s3.sh