Skip to content

Commit

Permalink
update deployment.yml, use ghcli instead of hub (#202)
Browse files Browse the repository at this point in the history
Signed-off-by: sriv <srikanth.ddit@gmail.com>
  • Loading branch information
sriv authored Feb 5, 2024
1 parent 77f328c commit 92efd92
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

Expand Down Expand Up @@ -48,24 +48,10 @@ jobs:
echo "---------------------------"
echo -e "Gauge Dotnet v$VERSION\n\n" > desc.txt
release_description=$(ruby -e "$(curl -sSfL https://github.com/getgauge/gauge/raw/master/build/create_release_text.rb)" getgauge gauge-dotnet)
echo "$release_description" >> desc.txt
echo "Creating new release for v$VERSION"
hub release create -F ./desc.txt "v$VERSION"
rm -rf desc.txt
sleep 10
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 "v$VERSION" -F ./desc.txt $artifacts
- name: 'deployment success'
if: success()
Expand Down

0 comments on commit 92efd92

Please sign in to comment.