GitHub workflow - removed post-build artifact and added gradle caching

This commit is contained in:
Joshua Darnell 2020-04-13 02:59:15 -07:00
parent 1a8346cc1f
commit ac0254d337
1 changed files with 7 additions and 5 deletions

View File

@ -20,12 +20,14 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and Run acceptance tests
run: ./gradlew build
- name: Create Build Artifacts
uses: actions/upload-artifact@v1
with:
name: web-api-commander.jar
path: build/libs/
- name: Create Build Artifacts