Skip to content

Commit

Permalink
Replace hub cli with GH cli for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Oct 26, 2023
1 parent d8fb192 commit ba501d8
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/githubRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ jobs:
version=$(ls gauge-* | head -1 | sed "s/\.[^\.]*$//" | sed "s/gauge-//" | sed "s/-[a-z]*\.[a-z0-9_]*$//");
fi
artifacts=()
dir=`pwd`
artifacts+="$dir/*.vsix"
echo "---------------------------"
echo "Updating release v$version"
echo "---------------------------"
Expand All @@ -40,19 +36,7 @@ jobs:
release_description=$(ruby -e "$(curl -sSfL https://github.com/getgauge/gauge/raw/master/build/create_release_text.rb)" getgauge gauge-vscode)
echo "$release_description" >> desc.txt
echo "Creating new draft for release v$version"
hub release create -F ./desc.txt "v$version"
rm -rf desc.txt
echo "Start uploading assets..."
for i in `ls $artifacts`; do
hub release edit -m "" -a $i "v$version"
if [ $? -ne 0 ];then
exit 1
fi
done
gh release create --title "gauge-vscode v${version}" --notes-file ./desc.txt "v${version}" *.vsix
marketplace-release:
name: Deploy to marketplace
Expand Down

0 comments on commit ba501d8

Please sign in to comment.