-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.02 KB
/
publishing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 }}