This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
explicitly request user last played date #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches-ignore: | |
- master | |
tags-ignore: | |
- '[0-9].*' | |
jobs: | |
build-dist: | |
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 | |
- uses: frabert/replace-string-action@v1.1 | |
id: str_replace | |
with: | |
pattern: '.+/(.+)' | |
string: ${{ github.ref }} | |
replace-with: '$1' | |
- uses: cschleiden/replace-tokens@v1 | |
with: | |
files: 'src/main/resources/version.properties' | |
env: | |
GIT_SHA: ${{ github.sha }} | |
GIT_BRANCH: ${{ github.ref }} | |
APP_VER: ${{ steps.str_replace.outputs.replaced }} | |
- name: SHA substring | |
run: echo "##[set-output name=minisha;]$(echo ${{ github.sha }}|cut -c1-8)" | |
id: mini_sha | |
- uses: cschleiden/replace-tokens@v1 | |
with: | |
files: 'build.gradle' | |
env: | |
VERSION: ${{ steps.mini_sha.outputs.minisha }} | |
- name: Build with Gradle | |
run: /bin/sh ./gradlew test shadowDistZip | |
- uses: actions/upload-artifact@v2-preview | |
with: | |
name: test-results | |
path: build/reports | |
- uses: actions/upload-artifact@v2-preview | |
with: | |
name: dist | |
path: build/distributions/*.zip |