-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (40 loc) · 1.1 KB
/
main.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
name: Build & Archive App
on:
push:
branches:
- main
- 'release/**'
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./android-studio-sample-app
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clean
run: ./gradlew clean --refresh-dependencies --stacktrace
- name: Build APK
run: ./gradlew --stacktrace assembleRelease
- name: Build AAB
run: ./gradlew --stacktrace bundleRelease
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: APK & AAB artifacts
path: |
**/app/build/outputs/apk/
**/app/build/outputs/bundle/
!**/*.json
- name: Send Slack Message
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()