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