From 5eaff3e9e3974e1d82461bf09d62974ba115e630 Mon Sep 17 00:00:00 2001 From: Shivam <69040506+brahmkshatriya@users.noreply.github.com> Date: Sun, 5 Jan 2025 04:23:23 +0530 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 79ad19b..47db3d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,15 +19,18 @@ jobs: java-version: 17 cache: 'gradle' - - name: Cook Env - run: | + - name: Cook Variables from gradle.properties + run : | name=$(grep '^extName=' gradle.properties | cut -d'=' -f2) echo "NAME=$name Extension" >> $GITHUB_ENV id=$(grep '^extId=' gradle.properties | cut -d'=' -f2) echo "TAG=$id" >> $GITHUB_ENV - echo -e "## ${{ env.NAME }}\n${{ github.event.head_commit.message }}" > commit.txt + + - name: Make Environment + run: | version=$( echo ${{ github.event.head_commit.id }} | cut -c1-7 ) echo "VERSION=v$version" >> $GITHUB_ENV + echo -e "## ${{ env.NAME }}\n${{ github.event.head_commit.message }}" > commit.txt echo "APP_PATH=app/build/${{ env.TAG }}-$version.eapk" >> $GITHUB_ENV echo "${{ secrets.KEYSTORE_B64 }}" | base64 -d > $GITHUB_WORKSPACE/signing-key.jks chmod +x ./gradlew