Skip to content

Commit

Permalink
Add compress archive for zipping release artifact (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
singhgss authored Sep 18, 2024
1 parent 0b3dae1 commit 2b61b6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ jobs:
$releaseName = $env:GITHUB_REF -replace 'refs/tags/', ''
mkdir release_assets
tar -czvf release_assets/azure-cac-solution-$releaseName.tar.gz --exclude='release_assets' --exclude='.git' --exclude='.github' .
zip -r release_assets/azure-cac-solution-$releaseName.zip . -x "release_assets/*" -x ".git/*" -x ".github/*"
$excludedItems = @('release_assets', '.git', '.github')
Get-ChildItem -Path . -Exclude $excludedItems | Compress-Archive -DestinationPath release_assets/azure-cac-solution-$releaseName.zip
echo "RELEASE_NAME=$releaseName" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Create Release
Expand Down

0 comments on commit 2b61b6e

Please sign in to comment.