-
-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (43 loc) · 1.24 KB
/
android-publish-artifact.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
45
46
name: android-publish-artifact
on:
push:
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@v4
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build artifacts
run: |
./gradlew emojify:preTest
./gradlew clean build
./gradlew emojify:postTest
- name: Publish to local maven
run: |
./gradlew publishMavenPublicationToMavenLocal
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: publications
path: ~/.m2/repository/io/wax911/emoji/