Skip to content

Update gradle wrapper #24

Update gradle wrapper

Update gradle wrapper #24

name: Java CI
on:
push:
branches:
- 'MC_1.12'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up git submodules
run: git submodule init && git submodule update
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
env:
sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}
sonatypePassword: ${{ secrets.OSSRH_PASSWORD }}
run: ./gradlew build publish
- uses: actions/upload-artifact@v2
with:
name: Compiled jars
path: build/libs/*