Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brahmkshatriya authored Jan 4, 2025
1 parent 21a8695 commit 5eaff3e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5eaff3e

Please sign in to comment.