From 336e1d0b9dd2172f886315e152e5c3fcb57afc1d Mon Sep 17 00:00:00 2001 From: mposolda Date: Mon, 16 Dec 2024 09:32:21 +0100 Subject: [PATCH] Removing release.sh. Avoid using environment variable Signed-off-by: mposolda --- .github/workflows/x-release.yml | 4 ++-- release.sh | 23 ----------------------- 2 files changed, 2 insertions(+), 25 deletions(-) delete mode 100755 release.sh diff --git a/.github/workflows/x-release.yml b/.github/workflows/x-release.yml index f3fcea81..2e6d91da 100644 --- a/.github/workflows/x-release.yml +++ b/.github/workflows/x-release.yml @@ -69,10 +69,10 @@ jobs: else echo 'false' fi - )" >> $GITHUB_ENV + )" >> "$GITHUB_OUTPUT" - name: Create a github release - if: env.release-exists == 'false' + if: steps.release-exists.outputs.release-existss == 'false' run: gh release create ${{ inputs.tag }} --repo ${{ inputs.gh-org }}/keycloak-nodejs-connect --title ${{ inputs.tag }} --draft ${{ inputs.nightly && '--prerelease' || '' }} - name: Create package tarball diff --git a/release.sh b/release.sh deleted file mode 100755 index ce5fa4db..00000000 --- a/release.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -e - -DIR="$PWD" -VERSION=`./get-version.sh` -echo "Version: $VERSION" - -echo "------------------------------------------------------------------------------------------------------------" -echo "Building:" -echo "" - -npm install - - -echo "------------------------------------------------------------------------------------------------------------" -echo "NPM public:" -echo "" - -npm publish - - -echo "------------------------------------------------------------------------------------------------------------" -echo "Done" -echo "------------------------------------------------------------------------------------------------------------"