32 lines
765 B
YAML
32 lines
765 B
YAML
name: 'Build branches'
|
|
|
|
on:
|
|
push:
|
|
branches-ignore: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
- name: Use gradle cache for faster builds
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.gradle/caches
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
- name: Generate Resources
|
|
run: ./gradlew generateData
|
|
- name: Build
|
|
run: ./gradlew build
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: dist
|
|
path: build/libs/
|