Skip to content

Commit

Permalink
deploy snapshot/release
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkir committed May 22, 2024
1 parent 05e7a29 commit 1e127d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/20_snapshot-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ jobs:
REPO_BINARY=$(find releng/repo.binary/target -name 'repo.binary-*.zip' -type f)
REPO_SDK=$(find releng/repo.sdk/target -name 'repo.sdk-*.zip' -type f)
if [[ $version =~ (.*+SNAPSHOT.*+) ]]; then
gh release list --json tagName | jq --arg rel $rel 'select(.[].tagName == $rel)' | grep $rel
retVal=$?
if [[ $retVal == 0 ]]; then
echo "delete existiong snapshot release, before creating new one"
gh release delete snapshot_$rel
git push --delete origin snapshot_$rel
fi
# gh release list --json tagName | jq --arg rel $rel 'select(.[].tagName == $rel)' | grep $rel
# retVal=$?
# if [[ $retVal == 0 ]]; then
# echo "delete existiong snapshot release, before creating new one"
# gh release delete snapshot_$rel
# git push --delete origin snapshot_$rel
# fi
gh release create snapshot_$rel $PRODUCTS $REPO_BINARY $REPO_PRODUCT $REPO_SDK -p
else
gh release create rel_$rel $PRODUCTS $REPO_BINARY $REPO_PRODUCT $REPO_SDK --latest
Expand Down

0 comments on commit 1e127d8

Please sign in to comment.