@@ -3,11 +3,11 @@ name: CI
33on :
44 push :
55 branches :
6- - uno
6+ - main
77 - release/*/*
88 pull_request :
99 branches :
10- - uno
10+ - main
1111 - release/*/*
1212 workflow_dispatch :
1313
8989 name : Sign
9090 runs-on : windows-latest
9191 needs : build
92- if : github.event_name == 'push' && (github.ref == 'refs/heads/uno ' || startsWith(github.ref, 'refs/heads/release/'))
92+ if : github.event_name == 'push' && (github.ref == 'refs/heads/main ' || startsWith(github.ref, 'refs/heads/release/'))
9393 environment : PackageSign
9494 permissions :
9595 contents : read
@@ -104,6 +104,12 @@ jobs:
104104 name : NuGet
105105 path : ${{ env.ARTIFACTS_DIR }}
106106
107+ - name : Export relative artifacts path
108+ shell : pwsh
109+ run : |
110+ $relativePath = [System.IO.Path]::GetRelativePath((Get-Location), "${{ env.ARTIFACTS_DIR }}")
111+ "ARTIFACTS_DIR_REL=$relativePath" | Out-File -FilePath $env:GITHUB_ENV -Append
112+
107113 - name : Setup .NET
108114 uses : actions/setup-dotnet@v4
109115
@@ -121,10 +127,9 @@ jobs:
121127 - name : Sign artifacts
122128 shell : pwsh
123129 run : >-
124- ./sign code azure-key-vault ${{ env.ARTIFACTS_DIR }}/**/*.nupkg --publisher-name "uno.monaco- editor-uwp "
130+ ./sign code azure-key-vault " ${{ env.ARTIFACTS_DIR_REL }}/**/*.nupkg" --publisher-name "uno.monaco. editor"
125131 --description "Uno Monaco Editor UWP"
126132 --description-url "https://github.com/${{ github.repository }}"
127- --azure-key-vault-managed-identity true
128133 --azure-key-vault-url "${{ secrets.SIGN_KEY_VAULT_URL }}"
129134 --azure-key-vault-certificate "${{ secrets.SIGN_KEY_VAULT_CERTIFICATE_ID }}"
130135 --verbosity information
@@ -140,7 +145,7 @@ jobs:
140145 runs-on : ubuntu-latest
141146 environment : Development
142147 needs : sign
143- if : github.event_name == 'push' && github.ref == 'refs/heads/uno '
148+ if : github.event_name == 'push' && github.ref == 'refs/heads/main '
144149 steps :
145150 - name : Checkout
146151 uses : actions/checkout@v4
0 commit comments