Merge pull request #249 from tarkalabs/mahi/enhance/TUISearchBar #227
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 :tarka-ui:assemble | |
- name: Publish to GitHub Package 🚀 | |
run: bash ./gradlew :tarka-ui:publish | |
env: | |
GITHUB_USER: ${{ github.actor }} | |
GITHUB_TOKEN: ${{ secrets.SECRET_TOKEN }} |