Skip to content

Commit

Permalink
Updating release script
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
robstryker committed Jun 15, 2023
1 parent cf2c510 commit e43febc
Show file tree
Hide file tree
Showing 3 changed files with 4,288 additions and 2,307 deletions.
4 changes: 2 additions & 2 deletions build/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const fs = require('fs-extra');
const download = require('download');
const decompress = require('decompress');

const qualifier = process.env.RSP_QUALIFIER === 'stable' ? 'stable' : 'snapshots';

const qualifier = process.env.RSP_QUALIFIER === 'snapshots' ? 'snapshots' : 'stable';
console.log("The qualifier is " + qualifier);
const RSP_SERVER_JAR_NAME = 'org.jboss.tools.rsp.distribution-latest.zip';
const RSP_SERVER_JAR_URL = `http://download.jboss.org/jbosstools/adapters/${qualifier}/rsp-server/${RSP_SERVER_JAR_NAME}`;

Expand Down
10 changes: 9 additions & 1 deletion npmUpversionMicroTagPush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,15 @@ echo "Now we should actually create some releases"
oldVerFinal=$oldver.Final
echo "Making a release on github for $oldVerFinal"
commitMsgsClean=`git log --color --pretty=format:'%s' --abbrev-commit | head -n $commits | awk '{ print " * " $0;}' | awk '{printf "%s\\\\n", $0}' | sed 's/"/\\"/g'`
createReleasePayload="{\"tag_name\":\"$vOldVerUnderscoreFinal\",\"target_commitish\":\"$curBranch\",\"name\":\"$oldVerFinal\",\"body\":\"Release of $oldVerFinal:\n\n"$commitMsgsClean"\",\"draft\":false,\"prerelease\":false,\"generate_release_notes\":false}"

msgLine1=`ls server/bundle/*spi* | cut -f 2 -d "_" | cut -f 1,2,3 -d "." | awk '{ print "Now using the " $0 " release of rsp-server. "}'`
msgLine2=`ls server/bundle/*spi* | cut -f 2 -d "_" | cut -f 1,2,3 -d "." | sed 's/\./_/g' | awk '{ print "See rsp-server CHANGELOG at https://github.com/redhat-developer/rsp-server/releases/tag/v" $0;}'`
commitMsgsFinal="$msgLine1\n$msgLine2\n$commitMsgsClean"

echo "Release commit log: $commitMsgsFinal"
read -p "Press enter to continue"

createReleasePayload="{\"tag_name\":\"$vOldVerUnderscoreFinal\",\"target_commitish\":\"$curBranch\",\"name\":\"$oldVerFinal\",\"body\":\"Release of $oldVerFinal:\n\n"$commitMsgsFinal"\",\"draft\":false,\"prerelease\":false,\"generate_release_notes\":false}"

if [ "$debug" -eq 0 ]; then
curl -L \
Expand Down
Loading

0 comments on commit e43febc

Please sign in to comment.