Merge pull request #139 from tarkalabs/mohan/enhancement/button_block… #133
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: Package Publishing | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- develop | |
jobs: | |
publish: | |
name: Release UI Library | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache Gradle and wrapper | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Grant Permission for Gradlew to Execute | |
run: chmod +x gradlew | |
- name: Build AAR 🔨 | |
run: bash ./gradlew :tarkaui:assemble | |
- name: Publish to GitHub Package 🚀 | |
run: bash ./gradlew :tarkaui:publish | |
env: | |
GITHUB_USER: ${{ github.actor }} | |
GITHUB_TOKEN: ${{ secrets.SECRET_TOKEN }} |