@@ -151,7 +151,7 @@ jobs:
151
151
# Parse repository to get owner and repo names
152
152
OWNER_NAME="${GITHUB_REPOSITORY%%/*}"
153
153
REPO_NAME="${GITHUB_REPOSITORY#*/}"
154
- export GITHUB_TOKEN=${{ secrets.DAPR_BOT_TOKEN }}
154
+ export GITHUB_TOKEN=${{ secrets.ALL_TOKEN }}
155
155
echo "Uploading Dapr CLI Binaries to GitHub Release"
156
156
github-release upload \
157
157
--owner $OWNER_NAME --repo $REPO_NAME \
@@ -163,8 +163,6 @@ jobs:
163
163
name : Publish to winget-pkgs
164
164
needs : publish
165
165
if : startswith(github.ref, 'refs/tags/v')
166
- env :
167
- WINGETCREATE_VERSION : 1.1.2.0
168
166
runs-on : windows-latest
169
167
steps :
170
168
- name : Check out code
@@ -174,11 +172,11 @@ jobs:
174
172
- name : Update winget manifests
175
173
shell : pwsh
176
174
run : |
177
- $url = "https://github.com/dapr /cli/releases/download/v${{ env.REL_VERSION }}/dapr.msi"
178
- iwr https://github.com/microsoft/winget-create/releases/download/v${{ env.WINGETCREATE_VERSION }}/ wingetcreate.exe -OutFile wingetcreate.exe
175
+ $url = "https://github.com/shivamkm07 /cli/releases/download/v${{ env.REL_VERSION }}/dapr.msi"
176
+ iwr https://aka.ms/ wingetcreate/latest -OutFile wingetcreate.exe
179
177
if("${{ env.REL_VERSION }}".Contains("-rc.")){
180
178
$PackageIdentifier="Dapr.CLI.Preview"
181
179
} else{
182
180
$PackageIdentifier="Dapr.CLI"
183
181
}
184
- .\wingetcreate.exe update "$PackageIdentifier" --submit --urls "$url|x64" --version "${{ env.REL_VERSION }}" --token "${{ secrets.DAPR_BOT_TOKEN }}"
182
+ .\wingetcreate.exe update "$PackageIdentifier" --submit --urls "$url|x64" --version "${{ env.REL_VERSION }}" --token "${{ secrets.ALL_TOKEN }}"
0 commit comments