Skip to content

Commit

Permalink
Fix auto update
Browse files Browse the repository at this point in the history
Thx shivam
  • Loading branch information
LuftVerbot committed Jan 5, 2025
1 parent ddc7aa3 commit d04f483
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
NAME: Deezer Extension
TAG: de
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -22,11 +19,18 @@ jobs:
java-version: 17
cache: 'gradle'

- name: Cook Env
- 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
- name: Make Environment
run: |
echo -e "## ${{ env.NAME }}\n${{ github.event.head_commit.message }}" > commit.txt
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 d04f483

Please sign in to comment.