-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdispatch_git_artifact_workflow.yml
More file actions
40 lines (32 loc) · 1.04 KB
/
Copy pathdispatch_git_artifact_workflow.yml
File metadata and controls
40 lines (32 loc) · 1.04 KB
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
#Workflow name
name: Dispatch app to Github Artifacts
run-name: Deploy by @${{ github.actor }}
#Generating triggers: It only triggers when push is generated on master branch.
on:
push:
branches: [ master ]
#Generating jobs: Execute job when trigger is hit.
jobs:
#Generate an apk
build-apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Grant Permission to Execute
run: chmod +x gradlew
- name: Upload API Key to gradle properties 🔥
run: sed -i "s|REPLACEABLE_PIXABAY_KEY|${{secrets.PIXABAY_KEY}}|g" ./gradle.properties
- name: Build debugging APK 🔥
run: bash ./gradlew assembleDebug
if: success()
- name: Uploading APK to Github Artifacts 🚀
uses: actions/upload-artifact@v3
with:
name: ${{ env.APK_NAME }}
path: app/build/outputs/apk/debug/${{ env.APK_NAME }}
env:
APK_NAME: "app-debug.apk"