-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (30 loc) · 1.05 KB
/
checkLibraryBuildStatus.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
name: ProgressDialog Library Build
on:
push:
branches: [master]
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
if: (${{ github.event_name == 'push' }} && startsWith(github.ref, 'refs/tags/1')) || (${{ github.event_name == 'pull_request' }} && ${{ github.actor != 'dependabot[bot]' }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/[email protected]
with:
java-version: 11
distribution: adopt
- name: Setup Gradle
uses: gradle/[email protected]
with:
gradle-version: 7.4.2
- name: Build Library with Gradle
run: gradle :progressdialoglibrary:clean :progressdialoglibrary:publishReleasePublicationToMavenLocal
- name: Upload Output AAR file
uses: actions/upload-artifact@v3
with:
name: progressdialoglibrary-release
path: progressdialoglibrary/build/outputs/aar/progressdialoglibrary-release.aar