Skip to content

Commit

Permalink
fix: old asset being cached
Browse files Browse the repository at this point in the history
  • Loading branch information
dec1 committed May 13, 2024
1 parent a9c44bb commit 4bedb00
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,27 @@ jobs:
asset_name="${{ env.tag_name }}.zip"
echo "Looking for asset: $asset_name"
# Ensure no stale asset file is present
rm -f "$asset_name"
# Use GitHub CLI to download the asset
gh release download "${{ env.tag_name }}" \
--pattern "$asset_name" \
--dir .
# List files to verify the correct asset is downloaded
echo "Downloaded files:"
ls -l
- name: Extract the archive
run: |
asset_name="${{ env.tag_name }}.zip"
unzip "$asset_name" -d extracted
# List contents to ensure cache is not affecting the content
echo "Contents of extracted directory:"
ls -lR extracted/
- name: Check for the expected directory structure
run: |
# Expected root directory inside the extracted folder
Expand Down Expand Up @@ -89,9 +100,7 @@ jobs:
echo "All specified directories exist."
# extracted/{release_name}
# extracted/{release_name}
# include
# boost/
# libs
Expand All @@ -112,4 +121,3 @@ jobs:
# exit 1
# fi


0 comments on commit 4bedb00

Please sign in to comment.