From 4056502ce5249129818911a820b600a86ec6d7a9 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Mon, 1 Dec 2025 08:56:52 -0800 Subject: [PATCH] fix: make source archive include working tree --- .github/workflows/custom_build.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/custom_build.yml b/.github/workflows/custom_build.yml index 2c1ceac..247fc9e 100644 --- a/.github/workflows/custom_build.yml +++ b/.github/workflows/custom_build.yml @@ -163,14 +163,19 @@ jobs: - The build flags above must be set exactly as shown to reproduce the build EOF - # Stage MESHFORGE.md so it gets included in the archive - git add -f MESHFORGE.md + # Create MESHFORGE.md so it gets included in the archive + # (already created above, just ensuring it exists) - # Use git archive to create tar, which automatically: - # - Respects .gitignore (excludes .pio/, build artifacts, etc.) - # - Excludes .git directory + # Create archive from working directory to include plugins installed by mpm + # Exclude .git, .pio, and build artifacts cd .. - git -C firmware archive --format=tar HEAD | gzip -9 > "${{ inputs.build_hash }}.tar.gz" + tar --exclude='.git' \ + --exclude='.pio' \ + --exclude='*.bin' \ + --exclude='*.uf2' \ + --exclude='build' \ + -czf "${{ inputs.build_hash }}.tar.gz" \ + -C firmware . update_status uploading_source_archive