Skip to content

Commit 8a310cc

Browse files
committed
[ci] setup ci
1 parent 775b10e commit 8a310cc

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- 'dev'
6+
paths-ignore:
7+
- 'README.md'
8+
9+
workflow_dispatch:
10+
pull_request:
11+
branches: [ dev ]
12+
paths-ignore:
13+
- 'README.md'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-20.04
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Grant execute permission for gradlew
22+
run: chmod +x gradlew
23+
24+
- name: set up JDK 17
25+
uses: actions/setup-java@v4
26+
with:
27+
java-version: '17'
28+
distribution: 'adopt'
29+
cache: gradle
30+
31+
- name: Build with Gradle
32+
run: ./gradlew storage:assembleRelease --stacktrace
33+
34+
- name: Upload aar
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: Android-Storage-Utilities
38+
retention-days: 15
39+
path: |
40+
./storage/build/outputs/aar/*-release.aar
41+

0 commit comments

Comments
 (0)