1
1
name : jetify
2
2
3
3
on :
4
+ push :
4
5
workflow_dispatch :
5
6
inputs :
6
7
version :
60
61
} else {
61
62
"publish-test"
62
63
}
63
-
64
+
64
65
if (-Not $IsMasterBranch) {
65
66
$DryRun = $true # force dry run when not on master branch
66
67
}
@@ -134,7 +135,7 @@ jobs:
134
135
run : |
135
136
Enter-VsDevShell ${{matrix.arch}}
136
137
$GitCommit = '${{ needs.preflight.outputs.detours-git-commit }}'
137
- .\detours.ps1 -GitCommit $GitCommit
138
+ .\jetify\ detours.ps1 -GitCommit $GitCommit
138
139
139
140
- name : Save Detours Cache (${{matrix.arch}})
140
141
if : steps.cache-detours.outputs.cache-hit != 'true'
@@ -145,6 +146,7 @@ jobs:
145
146
146
147
- name : Build Jetify (${{matrix.arch}})
147
148
shell : pwsh
149
+ working-directory : jetify
148
150
run : |
149
151
$Arch = "${{matrix.arch}}"
150
152
$BuildDir = "build-$Arch"
@@ -156,13 +158,14 @@ jobs:
156
158
@('Jetify.dll') | % {
157
159
Copy-Item "$BuildDir/Release/$_" "dependencies/Jetify/$Arch"
158
160
}
161
+ mkdir package
159
162
Compress-Archive "dependencies\Jetify\$Arch\*" ".\package\Jetify-$PackageVersion-$Arch.zip" -CompressionLevel Optimal
160
163
161
164
- name : Upload Jetify (${{matrix.arch}})
162
165
uses : actions/upload-artifact@v4
163
166
with :
164
167
name : Jetify-${{matrix.arch}}
165
- path : package/*.zip
168
+ path : jetify/ package/*.zip
166
169
167
170
package :
168
171
name : Package Jetify
@@ -225,16 +228,21 @@ jobs:
225
228
'-kvc', '${{ secrets.CODE_SIGNING_CERTIFICATE_NAME }}',
226
229
'-tr', '${{ vars.CODE_SIGNING_TIMESTAMP_SERVER }}',
227
230
'-v')
228
- Get-ChildItem "$UnpackedDir\lib" -Include @("*.dll") -Recurse | ForEach-Object {
231
+ Get-ChildItem $UnpackedDir -Recurse
232
+ Get-ChildItem "$UnpackedDir" -Include @("*.dll") -Recurse | ForEach-Object {
229
233
AzureSignTool @Params $_.FullName
230
234
}
231
235
Remove-Item $PackedFile -ErrorAction SilentlyContinue | Out-Null
232
236
Compress-Archive -Path "$UnpackedDir\*" -Destination $PackedFile -CompressionLevel Optimal
233
-
237
+
234
238
- name : Code sign nuget package
235
239
if : ${{ fromJSON(needs.preflight.outputs.sign-nuget) == true }}
236
240
shell : pwsh
241
+ working-directory : jetify
237
242
run : |
243
+ ls
244
+ echo "------------------------"
245
+ ls package
238
246
$NugetPackage = (Get-Item ".\package\*.nupkg" | Select-Object -First 1) | Resolve-Path -Relative
239
247
$Params = @('sign', $NugetPackage,
240
248
'-kvt', '${{ secrets.AZURE_TENANT_ID }}',
@@ -245,7 +253,7 @@ jobs:
245
253
'-tr', '${{ vars.CODE_SIGNING_TIMESTAMP_SERVER }}',
246
254
'-v')
247
255
& NuGetKeyVaultSignTool @Params
248
-
256
+
249
257
- name : Upload nuget package
250
258
uses : actions/upload-artifact@v4
251
259
with :
@@ -266,21 +274,21 @@ jobs:
266
274
name : Jetify-nupkg
267
275
path : package
268
276
269
- - name : Publish to nuget.org
270
- shell : pwsh
271
- run : |
272
- $DryRun = [System.Boolean]::Parse('${{ needs.preflight.outputs.dry-run }}')
273
- $NugetPackage = (Get-Item ./package/*.nupkg) | Resolve-Path -Relative
274
-
275
- $PushArgs = @(
276
- 'nuget', 'push', "$NugetPackage",
277
- '--api-key', '${{ secrets.NUGET_API_KEY }}',
278
- '--source', 'https://api.nuget.org/v3/index.json',
279
- '--skip-duplicate', '--no-symbols'
280
- )
281
- Write-Host "dotnet $($PushArgs -Join ' ')"
282
- if ($DryRun) {
283
- Write-Host "Dry Run: skipping nuget.org publishing!"
284
- } else {
285
- & 'dotnet' $PushArgs
286
- }
277
+ # - name: Publish to nuget.org
278
+ # shell: pwsh
279
+ # run: |
280
+ # $DryRun = [System.Boolean]::Parse('${{ needs.preflight.outputs.dry-run }}')
281
+ # $NugetPackage = (Get-Item ./package/*.nupkg) | Resolve-Path -Relative
282
+
283
+ # $PushArgs = @(
284
+ # 'nuget', 'push', "$NugetPackage",
285
+ # '--api-key', '${{ secrets.NUGET_API_KEY }}',
286
+ # '--source', 'https://api.nuget.org/v3/index.json',
287
+ # '--skip-duplicate', '--no-symbols'
288
+ # )
289
+ # Write-Host "dotnet $($PushArgs -Join ' ')"
290
+ # if ($DryRun) {
291
+ # Write-Host "Dry Run: skipping nuget.org publishing!"
292
+ # } else {
293
+ # & 'dotnet' $PushArgs
294
+ # }
0 commit comments