Skip to content

Fixed #131 Updated farmland block shape for waterlogging state #209

Fixed #131 Updated farmland block shape for waterlogging state

Fixed #131 Updated farmland block shape for waterlogging state #209

name: Growthcraft Build, Analyze, and Release
on:
push:
branches:
- '*'
tags:
- '*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Gradle
run: chmod +x gradlew
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build --info
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: build/libs/
release:
name: Release
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download build artifacts
uses: actions/[email protected]
with:
name: build-artifacts
path: build/libs/
- name: GitHub Release
uses: fnkr/github-action-ghr@v1
env:
GHR_PATH: build/libs/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}