From 40108014dd134b8658d50fcbc0a206a58158b162 Mon Sep 17 00:00:00 2001 From: Alexander Lopez Date: Wed, 10 Jul 2024 21:14:22 -0700 Subject: [PATCH] leverage sparse checkout without cone mode instead of deleting files --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a2aa05..3c09ab8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,11 +15,20 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + sparse-checkout-cone-mode: false + sparse-checkout: | + CMake* + Config.cmake.in + cmake/* + README.md + LICENSE + Makefile + str_view/* - name: Create Release Zip run: | - git rm -r --cached tests samples images res vcpkg etc || true - git archive $( git write-tree ) --format=zip --output=str_view-${GITHUB_REF#refs/tags/}.zip + git archive HEAD --format=zip --output=str_view-${GITHUB_REF#refs/tags/}.zip echo "ZIP_FILE=str_view-${GITHUB_REF#refs/tags/}.zip" >> $GITHUB_ENV - name: Create Release