Skip to content

Commit

Permalink
added add get library version
Browse files Browse the repository at this point in the history
  • Loading branch information
neoBortx authored and Borja committed Jan 18, 2024
1 parent 6eb234d commit 391e73b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/android_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:

- name: Set up env variables
run: |
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "ENCODED_KEYSTORE=${{ secrets.ENCODED_KEYSTORE }}" >> $GITHUB_ENV
echo "KEYSTORE_PATH=${{ secrets.KEYSTORE_PATH }}" >> $GITHUB_ENV
echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> $GITHUB_ENV
Expand All @@ -43,10 +42,15 @@ jobs:
draft: false
prerelease: false

- name: Extract Library Version
id: version
run: |
echo "VERSION=$(./gradlew -q printVersionName)" >> $GITHUB_ENV
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./simpleBleClient/build/outputs/aar/simpleBleClient-${{ steps.version.outputs.version }}.aar
asset_path: ./simpleBleClient/build/outputs/aar/simpleBleClient-${VERSION}.aar
asset_name: simpleBleClient-${{ steps.version.outputs.version }}.aar
asset_content_type: application/zip

0 comments on commit 391e73b

Please sign in to comment.