Skip to content

Merge pull request #2 from basysKom/bugfix/fixing-workflow-errors #8

Merge pull request #2 from basysKom/bugfix/fixing-workflow-errors

Merge pull request #2 from basysKom/bugfix/fixing-workflow-errors #8

Workflow file for this run

name: Deploy
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
uses: ./.github/workflows/android.yml
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- name: Get Version Tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Rename APK
run: mv ./android-apk/android-build-release-unsigned-signed.apk ./android-apk/opc-ua-browser_${{ github.run_number }}_${{ env.RELEASE_VERSION }}.apk
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_VERSION }}
release_name: Release ${{ env.RELEASE_VERSION }}
body: |
New Release ${{ env.RELEASE_VERSION }}
draft: true
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./android-apk/opc-ua-browser_${{ github.run_number }}_${{ env.RELEASE_VERSION }}.apk
asset_name: opc-ua-browser_${{ github.run_number }}_${{ env.RELEASE_VERSION }}.apk
asset_content_type: application/zip
- name: Deploy to Google PlayStore
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
releaseFiles: ./android-abb/android-build-release.aab
packageName: com.basyskom.opcua.app
track: internal
status: draft