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:
Justin Bassett 2021-12-28 09:03:52 -05:00 committed by GitHub
parent b7d0ae7b2a
commit 8011d763e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}