mirror of
https://github.com/home-assistant/android
synced 2024-10-15 12:32:54 +00:00
Update Release Workflow (#2081)
Ensure that we upload a release version of the wear apk along with publishing a text document with the version code.
This commit is contained in:
parent
b7d0ae7b2a
commit
8011d763e0
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
|
@ -91,6 +91,33 @@ jobs:
|
|||
asset_name: home-assistant-minimal-${{steps.rel_number.outputs.version}}.apk
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Upload Wear APK
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./wear/build/outputs/apk/release/wear-release.apk
|
||||
asset_name: home-assistant-wear-${{steps.rel_number.outputs.version}}.apk
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Create Version File
|
||||
shell: bash
|
||||
env:
|
||||
VERSION_CODE: ${{ steps.rel_number.outputs.version-code }}
|
||||
run: |
|
||||
echo $VERSION_CODE > ./app/build/outputs/version_code.txt
|
||||
|
||||
- name: Upload Version Code
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.get_release.outputs.upload_url }}
|
||||
asset_path: ./app/build/outputs/version_code.txt
|
||||
asset_name: version_code.txt
|
||||
asset_content_type: text/plain
|
||||
|
||||
- name: Deploy to Firebase
|
||||
env:
|
||||
KEYSTORE_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }}
|
||||
|
|
Loading…
Reference in a new issue