File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 12
12
- " AUTHORS.TXT"
13
13
- " CHANGELOG"
14
14
- " COPYING"
15
+ workflow_dispatch :
16
+ inputs :
17
+ forceRelease :
18
+ description : ' Force release'
19
+ required : false
20
+ default : ' '
21
+ type : choice
22
+ options :
23
+ - ' 0'
24
+ - ' 1'
15
25
16
26
permissions :
17
27
packages : write
@@ -425,13 +435,15 @@ jobs:
425
435
with :
426
436
path : ${{ github.workspace }}/bindings/dotnet/UnicornEngine/bin/Release/UnicornEngine.Unicorn.*.nupkg
427
437
438
+ # We always reach billing limit, allow it fails
428
439
- name : 📦 Publish to Github Packages
429
- if : startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v')
440
+ if : (inputs.forceRelease != '' && inputs.forceRelease == 1) || (startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v'))
441
+ continue-on-error : true
430
442
working-directory : bindings/dotnet/UnicornEngine
431
443
run : dotnet nuget push "bin/Release/UnicornEngine.Unicorn.*.nupkg" --source "github" --api-key "${{ secrets.GHPR_TOKEN }}"
432
444
433
445
- name : 📦 Publish Nuget package
434
- if : startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v')
446
+ if : (inputs.forceRelease != '' && inputs.forceRelease == 1) || ( startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v') )
435
447
working-directory : bindings/dotnet/UnicornEngine
436
448
run : dotnet nuget push "bin/Release/UnicornEngine.Unicorn.*.nupkg" -k "$NUGET_AUTH_TOKEN" -s https://api.nuget.org/v3/index.json
437
449
env :
You can’t perform that action at this time.
0 commit comments