Skip to content

Commit

Permalink
Update build-ladb.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnotsos authored Sep 29, 2024
1 parent f3151ae commit bf68665
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-ladb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
REPO_NAME=${REPO_URL##*/}
echo "REPO_NAME=${REPO_NAME}" >> $GITHUB_ENV
- name: Extract Version from build.gradle
id: extract_version
run: |
echo "VERSION=$(grep 'versionName' app/build.gradle | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')" >> $GITHUB_ENV
echo "VERSION=${{ env.VERSION }}" >> $GITHUB_ENV
- name: Setup JDK
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -61,7 +68,7 @@ jobs:
id: upload_release_asset
uses: softprops/[email protected]
with:
tag_name: ${{ env.REPO_NAME }}${{ github.run_number }}
tag_name: ${REPO_NAME}-${{ env.VERSION }}
files: ./${{ env.REPO_NAME }}.apk
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}

0 comments on commit bf68665

Please sign in to comment.