Skip to content
upload

GitHub Action

Deploy to Huawei App Gallery Update 2023

v1.1 Latest version

Deploy to Huawei App Gallery Update 2023

upload

Deploy to Huawei App Gallery Update 2023

Uploads and releases apps to Huawei App Gallery

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Deploy to Huawei App Gallery Update 2023

uses: kienlv58/[email protected]

Learn more about this action in kienlv58/appgallery-deply-action

Choose a version

820px-Huawei_AppGallery

Deploy to Huawei App Gallery

This action uploads your .apk/.aab to Huawei App Gallery.

Generate Client Keys

Client Id and the Client Key for that we need to create a new API key in the AppGallery console. Sign in to AppGallery Connect and select Users and permissions then Api Key > Connect API.

  • set up your project as N/A and Add the role Administrator to it

Inputs

client-id

Required Client Id can be generated from Connect API

client-key

Required Client Key can be generated from Connect API

app-id

Required App Id can be found on App Information.

file-extension

Required File name extension apk/rpk/pdf/jpg/jpeg/png/bmp/mp4/mov/aab.

file-path

Required File path to upload

file-name (String) default app-release

Optional Desired file name seen on AppGallery Connect after the upload. This will define a custom file name on AppGallery package file list. If not used, the file name shown on AppGallery Connect will be always app-release.extension.

submit (BOOL) default false

Optional whether or not to submit automatically

Sample usage

      - name: Deploy to Huawei App Gallery
        uses: kienlv58/appgallery-deply-action@main
        with:
          client-id: ${{secrets.HUAWEI_CLIENT_ID}}
          client-key: ${{secrets.HUAWEI_CLIENT_KEY}}
          app-id: ${{secrets.HUAWEI_APP_ID}}
          file-extension: "apk"
          file-path: "apk/release/app-release.apk"
          file-name: "MyAppName-1.0.0"
          submit: true

Reference:

https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agcapi-getstarted-0000001111845114 https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agcapi-upload_appfile-0000001158365309

This fork to fix the issue: muhamedzeema#8