mirror of https://github.com/dapr/cli.git
Use offical gh cli instead of npm github-release-cli (#1264)
Signed-off-by: letmerecall <girishsharma001@gmail.com>
This commit is contained in:
parent
6eca34e727
commit
176fa0a663
|
@ -169,20 +169,15 @@ jobs:
|
||||||
- name: publish binaries to github
|
- name: publish binaries to github
|
||||||
if: startswith(github.ref, 'refs/tags/v')
|
if: startswith(github.ref, 'refs/tags/v')
|
||||||
run: |
|
run: |
|
||||||
echo "installing github-release-cli..."
|
|
||||||
sudo npm install --silent --no-progress -g github-release-cli@1.3.1
|
|
||||||
# Get the list of files
|
# Get the list of files
|
||||||
RELEASE_ARTIFACT=(${ARTIFACT_DIR}/*)
|
RELEASE_ARTIFACT=(${ARTIFACT_DIR}/*)
|
||||||
# Parse repository to get owner and repo names
|
|
||||||
OWNER_NAME="${GITHUB_REPOSITORY%%/*}"
|
|
||||||
REPO_NAME="${GITHUB_REPOSITORY#*/}"
|
|
||||||
export GITHUB_TOKEN=${{ secrets.DAPR_BOT_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 \
|
gh release create \
|
||||||
--owner $OWNER_NAME --repo $REPO_NAME \
|
"v${REL_VERSION}" \
|
||||||
--tag "v${REL_VERSION}" \
|
--title "Dapr CLI v${REL_VERSION}" \
|
||||||
--name "Dapr CLI v${REL_VERSION}" \
|
--repo $GITHUB_REPOSITORY \
|
||||||
--prerelease true \
|
--prerelease \
|
||||||
${RELEASE_ARTIFACT[*]}
|
${RELEASE_ARTIFACT[*]}
|
||||||
publish-winget:
|
publish-winget:
|
||||||
name: Publish to winget-pkgs
|
name: Publish to winget-pkgs
|
||||||
|
|
Loading…
Reference in New Issue