Merge pull request #126 from backtrace-labs/release-3.8.2 #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Archives | |
on: | |
push: | |
tags: '[0-9]+.[0-9]+.[0-9]+*' | |
workflow_dispatch: | |
jobs: | |
build: | |
env: | |
ANDROID_API_LEVEL: 23 | |
ANDROID_EMULATOR_LEVEL: 23 | |
ANDROID_BUILD_TOOLS_VERSION: 28.0.3 | |
ANDROID_TAG: google_apis | |
ADB_INSTALL_TIMEOUT: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout submodules | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
submodules: recursive | |
token: ${{ secrets.ACCESS_TOKEN }} | |
persist-credentials: false | |
- name: set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11.0.10 | |
distribution: 'adopt' | |
cache: gradle | |
- name: Add Maven credentials to gradle.properties | |
run: echo "NEXUS_USERNAME=${{ secrets.NEXUS_USERNAME }}" >> gradle.properties && echo "NEXUS_PASSWORD=${{ secrets.NEXUS_PASSWORD }}" >> gradle.properties | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Upload archives | |
run: ./gradlew build publish | |
env: | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ASCII_ARMORED_GPG_KEY }} # ASCII-armored GPG key | |
ORG_GRADLE_PROJECT_signingPassword: "" # Using empty password for GPG key | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "example-app/build/outputs/native-debug-symbols/release/native-debug-symbols.zip;example-app/build/outputs/apk/debug/example-app-debug.apk" | |
draft: true | |
verbose: env.ACTIONS_STEP_DEBUG |