mirror of https://github.com/dapr/cli.git
fix few issue (#1231)
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
This commit is contained in:
parent
1cec708d88
commit
63f3fa0e29
|
|
@ -151,7 +151,7 @@ jobs:
|
||||||
# Parse repository to get owner and repo names
|
# Parse repository to get owner and repo names
|
||||||
OWNER_NAME="${GITHUB_REPOSITORY%%/*}"
|
OWNER_NAME="${GITHUB_REPOSITORY%%/*}"
|
||||||
REPO_NAME="${GITHUB_REPOSITORY#*/}"
|
REPO_NAME="${GITHUB_REPOSITORY#*/}"
|
||||||
export GITHUB_TOKEN=${{ secrets.ALL_TOKEN }}
|
export GITHUB_TOKEN=${{ secrets.DAPR_BOT_TOKEN }}
|
||||||
echo "Uploading Dapr CLI Binaries to GitHub Release"
|
echo "Uploading Dapr CLI Binaries to GitHub Release"
|
||||||
github-release upload \
|
github-release upload \
|
||||||
--owner $OWNER_NAME --repo $REPO_NAME \
|
--owner $OWNER_NAME --repo $REPO_NAME \
|
||||||
|
|
@ -172,11 +172,11 @@ jobs:
|
||||||
- name: Update winget manifests
|
- name: Update winget manifests
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$url = "https://github.com/shivamkm07/cli/releases/download/v${{ env.REL_VERSION }}/dapr.msi"
|
$url = "https://github.com/dapr/cli/releases/download/v${{ env.REL_VERSION }}/dapr.msi"
|
||||||
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
||||||
if("${{ env.REL_VERSION }}".Contains("-rc.")){
|
if("${{ env.REL_VERSION }}".Contains("-rc.")){
|
||||||
$PackageIdentifier="Dapr.CLI.Preview"
|
$PackageIdentifier="Dapr.CLI.Preview"
|
||||||
} else{
|
} else{
|
||||||
$PackageIdentifier="Dapr.CLI"
|
$PackageIdentifier="Dapr.CLI"
|
||||||
}
|
}
|
||||||
.\wingetcreate.exe update "$PackageIdentifier" --submit --urls "$url|x64" --version "${{ env.REL_VERSION }}" --token "${{ secrets.ALL_TOKEN }}"
|
.\wingetcreate.exe update "$PackageIdentifier" --submit --urls "$url|x64" --version "${{ env.REL_VERSION }}" --token "${{ secrets.DAPR_BOT_TOKEN }}"
|
||||||
Loading…
Reference in New Issue