Skip to content

hotfix(jitpack): update jitpack.yml (#212) #16

hotfix(jitpack): update jitpack.yml (#212)

hotfix(jitpack): update jitpack.yml (#212) #16

name: android-publish-artifact
on:
push:
branches: [ develop ]
pull_request:
branches:
- develop
paths-ignore:
- "app/src/main/**"
permissions:
checks: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v3
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Wait for tests to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
running-workflow-name: android-publish-artifact
check-name: unit
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 20
- uses: gradle/actions/setup-gradle@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build artifacts
run: |
./gradlew clean build
- name: Publish to local maven
run: |
./gradlew publishMavenPublicationToMavenLocal
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: publications
path: ~/.m2/repository/io/wax911/emoji/