name: Gradle Build on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up JDK uses: actions/setup-java@v1 with: java-version: '8.0.312' architecture: x64 - name: Build with Gradle run: | chmod +x ./gradlew ./gradlew build -iS - uses: actions/upload-artifact@v2 with: name: Package path: build/libs