-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.42 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
51
52
53
54
55
56
57
58
59
60
61
name: Android CI
on:
push:
branches: ["main"]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
env:
TAG: Release
PROJECT_NAME: ${{github.event.repository.name}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILE_OUTPUT: ./app/build/outputs/apk/debug/app-debug.apk
steps:
- uses: actions/checkout@v4
- name: Setting JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: memberikan Perizinan gradlew
run: chmod +x gradlew
- name: Build debug Apk
run: bash ./gradlew assembleDebug --stacktrace
- name: Upload Ke dalam Artifact
uses: actions/[email protected]
with:
name: ${{env.PROJECT_NAME}}
path: ${{env.FILE_OUTPUT}}
- name: Pembuatan Membuat Tag Rilis
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{env.TAG}}
release_name: ${{env.PROJECT_NAME}}
body: "Aplikasi ini otomatis dirilis sesuai dengan Artefact"
draft: false
prerelease: false
- name: Upload Release
uses: xresloader/upload-to-github-release@v1
with:
file: ${{env.FILE_OUTPUT}}
tag_name: ${{env.TAG}}
tags: true