mirror of
https://github.com/r0adkll/sign-android-release
synced 2026-09-23 21:28:36 +00:00
Add docs about BUILD_TOOLS_VERSION env, and add example usage of action output
This commit is contained in:
@@ -31,6 +31,10 @@ Then copy the contents of the `.txt` file to your GH secrets
|
|||||||
|
|
||||||
**Optional:** The private key password for your signing keystore
|
**Optional:** The private key password for your signing keystore
|
||||||
|
|
||||||
|
## ENV: `BUILD_TOOLS_VERSION`
|
||||||
|
|
||||||
|
**Optional:** You can manually specify a version of build-tools to use. We use `29.0.3` by default.
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
### `signedReleaseFile`
|
### `signedReleaseFile`
|
||||||
@@ -44,11 +48,26 @@ This also set's an environment variable that points to the signed release file
|
|||||||
## Example usage
|
## Example usage
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: r0adkll/sign-android-release@v1
|
steps:
|
||||||
|
# ...
|
||||||
|
|
||||||
|
- uses: r0adkll/sign-android-release@v1
|
||||||
|
name: Sign app APK
|
||||||
|
# ID used to access action output
|
||||||
|
id: sign_app
|
||||||
with:
|
with:
|
||||||
releaseDirectory: app/build/outputs/apk/release
|
releaseDirectory: app/build/outputs/apk/release
|
||||||
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
||||||
alias: ${{ secrets.ALIAS }}
|
alias: ${{ secrets.ALIAS }}
|
||||||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||||
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||||
|
env:
|
||||||
|
// override default build-tools version (29.0.3) -- optional
|
||||||
|
BUILD_TOOLS_VERSION: "30.0.2"
|
||||||
|
|
||||||
|
# Example use of `signedReleaseFile` output -- not needed
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Signed app bundle
|
||||||
|
path: ${{steps.sign_app.outputs.signedReleaseFile}}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user