Skip to content

Commit 20d7ac4

Browse files
committed
experiment with tag-only steps (9)
try asset again with dynamic name
1 parent 8c0f5a2 commit 20d7ac4

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/CI_build.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ jobs:
6464
}
6565
$zipName = "CollectionInterface_${{ matrix.build_platform }}.zip"
6666
$filesToZip = "CollectionInterface.dll", ".\docs\"
67-
Compress-Archive -Path $filesToZip -Destination CollectionInterface.zip
67+
Compress-Archive -Path $filesToZip -Destination $zipName
6868
dir
69-
#- name: 🎉 Store ${{ matrix.build_platform }} zipfile as asset
70-
# if: startsWith(github.ref, 'refs/tags/v') && matrix.build_configuration == 'Release'
71-
# uses: svenstaro/upload-release-action@v2
72-
# with:
73-
# repo_token: ${{ secrets.GITHUB_TOKEN }}
74-
# file: ./CollectionInterface.zip
75-
# tag: ${{ github.ref }}
76-
# overwrite: true
77-
# body: ${{ github.event.release.body }}
69+
- name: 🎉 Store ${{ matrix.build_platform }} zipfile as asset
70+
if: startsWith(github.ref, 'refs/tags/v') && matrix.build_configuration == 'Release'
71+
uses: svenstaro/upload-release-action@v2
72+
with:
73+
repo_token: ${{ secrets.GITHUB_TOKEN }}
74+
file: ./CollectionInterface_${{ matrix.build_platform }}.zip
75+
asset_name: CollectionInterface_${{ matrix.build_platform }}.zip
76+
tag: ${{ github.ref }}
77+
overwrite: true
78+
body: ${{ github.event.release.body }}

0 commit comments

Comments
 (0)