forked from mosip/tuvali
-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (50 loc) · 1.67 KB
/
android-artefact-build.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Android Artifact Build
on:
push:
paths:
- '**' # Triggers the workflow on changes to any file in the repository
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # Grants permission to push code and manage releases
pull-requests: write # Grants permission to write pull requests
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install npm dependencies
run: |
npm install -g yarn # Install yarn globally if you're using yarn
yarn install # or `npm install` if using npm
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build Artifact
run: |
cd android
chmod +x ./gradlew
./gradlew assembleDebug
- name: Replace Existing Artifact
run: |
ls -la ./android/build/outputs/aar/
mkdir -p ./artefacts/tuvali-android-artefact/
cp ./android/build/outputs/aar/*.aar ./artefacts/tuvali-android-artefact/
- name: Configure Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Commit Artifacts
run: |
git add .
git commit --allow-empty -m "chore(#890): changes in script"
- name: Push Changes to Specific Branch
run: |
git push origin inji-Kotlin-ios-artefact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}