BlockData instead of BlockState #17
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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Java CI with Maven | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
schedule: | |
- cron: '22 14 * * 6' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Movecraft-Overheat | |
uses: actions/checkout@v3 | |
with: | |
path: movecraft-overheat | |
- name: Checkout Movecraft-Combat | |
uses: actions/checkout@v2 | |
with: | |
repository: 'APDevTeam/Movecraft-Combat' | |
path: Movecraft-Combat | |
ref: main | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Cache Maven packages | |
id: cacheMain | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2 | |
restore-keys: ${{ runner.os }}-m2 | |
# Build Movecraft-Combat | |
- name: Build Movecraft-Combat | |
run: mvn -B package -T 1C --file Movecraft-Combat/pom.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Build Movecraft-Overheat | |
- name: Build Movecraft-Overheat | |
run: mvn -B package -T 1C --file movecraft-overheat/pom.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Stage jar | |
run: mkdir staging && cp movecraft-overheat/target/Movecraft-Overheat*.jar staging | |
- name: Rename jar | |
run: mv staging/Movecraft-Overheat*.jar staging/Movecraft-Overheat_$GITHUB_SHA.jar | |
- name: Upload jar | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Movecraft-Overheat_Dev-Build | |
path: staging/Movecraft-Overheat_*.jar |