Skip to content

Release packages

Release packages #99

Workflow file for this run

name: Release packages
on:
workflow_dispatch:
jobs:
release_update:
runs-on: ubuntu-latest
env:
GITHUB_ACCESS_KEY: ${{ secrets.GH_ACCESS_KEY }}
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
steps:
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
distribution: "corretto"
java-version: 11
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Caching Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Checkout the repository
uses: actions/checkout@v2
- name: Cache Zoom SDK files
id: zoom-cache
uses: actions/cache@v2
with:
path: |
./mobilertc
./commonlib
key: zoom_sdk_files
- name: Setup Zoom SDK
if: steps.zoom-cache.outputs.cache-hit != 'true'
run: |
wget https://media.testpress.in/static/android/zoom_sdk.zip
unzip -o ./zoom_sdk.zip
- name: Generate Build
run: ./gradlew clean build -x test
- name: Release
if: ${{ github.ref == 'refs/heads/master' }}
run: ./gradlew publish