-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 902 Bytes
/
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
name: Build
on: [ push, pull_request ]
#on:
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Access MANAGE_YOUR_RENTERS_BASE_URL and UNSPLASH_CLIENT_ID
env:
UNSPLASH_CLIENT_ID: ${{secrets.UNSPLASH_CLIENT_ID}}
MANAGE_YOUR_RENTERS_BASE_URL: ${{secrets.MANAGE_YOUR_RENTERS_BASE_URL}}
run: echo -e "UNSPLASH_CLIENT_ID=\"$UNSPLASH_CLIENT_ID\"\nMANAGE_YOUR_RENTERS_BASE_URL=\"$MANAGE_YOUR_RENTERS_BASE_URL\"" > ./local.properties
- name: Build with Gradle
run: ./gradlew build