Merge pull request #116 from techinessoverloaded/dependabot/github_ac… #300
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: 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@v4 | |
with: | |
name: progressdialoglibrary-release | |
path: progressdialoglibrary/build/outputs/aar/progressdialoglibrary-release.aar |