docs: add example using glob

This commit is contained in:
Diogo de Azevedo Silva
2021-03-17 15:46:44 -03:00
parent 053164334a
commit c6ef6b1183
2 changed files with 22 additions and 8 deletions

View File

@@ -102,3 +102,17 @@ with:
whatsNewDirectory: distribution/whatsnew
mappingFile: app/build/outputs/mapping/release/mapping.txt
```
Using glob to get release files
```yaml
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: ${{ SERVICE_ACCOUNT_JSON }}
packageName: com.example.MyApp
releaseFiles: app/build/outputs/bundle/release/*.aab
track: production
inAppUpdatePriority: 2
userFraction: 0.33
whatsNewDirectory: distribution/whatsnew
mappingFile: app/build/outputs/mapping/release/mapping.txt
```

View File

@@ -1,9 +1,9 @@
name: "Upload Android Release to Play Store"
name: 'Upload Android Release to Play Store'
description: "An action to upload a signed Android release (.apk or .aab) to the Google Play Store Developer Console"
author: "r0adkll"
author: 'r0adkll'
branding:
icon: "truck"
color: "orange"
icon: 'truck'
color: 'orange'
inputs:
serviceAccountJson:
description: "The service account json private key file to authorize the upload request"
@@ -25,11 +25,11 @@ inputs:
required: false
track:
description: "The track in which you want to assign the uploaded app."
default: "production"
default: 'production'
required: true
inAppUpdatePriority:
description: "In-app update priority of the release. All newly added APKs in the release will be considered at this priority. Can take values in the range [0, 5], with 5 the highest priority. Defaults to 0."
default: "0"
default: '0'
required: false
userFraction:
description: "Portion of users who should get the staged version of the app. Accepts values between 0.0 and 1.0 (exclusive-exclusive)."
@@ -44,5 +44,5 @@ outputs:
internalSharingDownloadUrl:
description: "The internal app sharing download url if track was 'internalsharing'"
runs:
using: "node12"
main: "lib/main.js"
using: 'node12'
main: 'lib/main.js'