Skip to content

Commit 9be9302

Browse files
committed
Update PTIX package name
1 parent 2bc1771 commit 9be9302

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,19 @@ jobs:
6868
6969
foreach ($plugin in $dirs.Keys) {
7070
$sourcePath = $dirs[$plugin]
71-
plugintool pack -s $sourcePath -o "$sourcePath/$plugin.ptix"
71+
$pluginManifestPath = "$sourcePath/pluginManifest.json"
72+
73+
if (!(Test-Path $pluginManifestPath)) {
74+
Write-Error "pluginManifest.json not found in $sourcePath"
75+
}
76+
77+
$pluginManifest = Get-Content -Path $pluginManifestPath | ConvertFrom-Json
78+
79+
$pluginId = $pluginManifest.identity.id
80+
$pluginVersion = $pluginManifest.identity.version
81+
$packageName = "$pluginId-$pluginVersion.ptix"
82+
83+
plugintool pack -s $sourcePath -o "$sourcePath/$packageName"
7284
}
7385
7486
- name: Copy files and prepare artifacts

0 commit comments

Comments
 (0)