Skip to content

Commit

Permalink
leverage sparse checkout without cone mode instead of deleting files
Browse files Browse the repository at this point in the history
  • Loading branch information
agl-alexglopez committed Jul 11, 2024
1 parent df6301a commit 4010801
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4010801

Please # to comment.