File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 55
55
shell : pwsh
56
56
run : |
57
57
./make_release.ps1
58
-
58
+
59
59
- name : Build release
60
60
if : matrix.os != 'windows-latest'
61
61
run : make release TARGET=${{ matrix.target }}
@@ -84,10 +84,15 @@ jobs:
84
84
- name : Extract tag_name from zip file
85
85
id : extract_tag
86
86
run : |
87
- ZIP=$(ls c2pa-v*-*.zip | head -n1)
88
- TAG_NAME=$(echo "$ZIP" | sed -E 's/^(c2pa-v[0-9]+\.[0-9]+\.[0-9]+)-.*\.zip/\1/')
89
- echo "Found tag: $TAG_NAME"
90
- echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
87
+ ZIP=$(find . -name "c2pa-v*-*.zip" | head -n1)
88
+ if [ -n "$ZIP" ]; then
89
+ TAG_NAME=$(echo "$ZIP" | sed -E 's/.*\/(c2pa-v[0-9]+\.[0-9]+\.[0-9]+)-.*\.zip/\1/')
90
+ echo "Found tag: $TAG_NAME"
91
+ echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
92
+ else
93
+ echo "No zip files found"
94
+ exit 1
95
+ fi
91
96
92
97
- name : Create Release
93
98
id : create_release
Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ New-Item -ItemType Directory -Force -Path $libDir | Out-Null
111
111
Copy-Item " $ReleaseDir \c2pa.h" $includeDir - Force
112
112
Copy-Item " $ReleaseDir \c2pa_c.*" $libDir - Force
113
113
114
- $zipPath = " $artifactsDir \c2pa-v$version -$Platform .zip"
115
- Compress-Archive - Path " $includeDir " , " $libDir " - DestinationPath $zipPath - Force
114
+ $zipPath = " $artifactsDir \c2pa-v$version -$platform .zip"
115
+ Compress-Archive - Path " $includeDir " , " $libDir " - DestinationPath $zipPath - Force
116
116
117
117
Write-Host " Zip file created: $zipPath "
118
118
Write-Host " Setup completed successfully!"
You can’t perform that action at this time.
0 commit comments