mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 10:57:11 +00:00
32 lines
885 B
YAML
32 lines
885 B
YAML
name: "build"
|
|
|
|
on: ["pull_request", "push"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: "ubuntu-20.04"
|
|
steps:
|
|
- name: "Checkout Repository"
|
|
uses: "actions/checkout@v2.3.4"
|
|
- name: "Grab SHA"
|
|
uses: "benjlevesque/short-sha@v1.2"
|
|
id: "short-sha"
|
|
with:
|
|
length: "7"
|
|
- name: "Echo SHA"
|
|
run: "echo $SHA"
|
|
env:
|
|
SHA: "${{ steps.short-sha.outputs.sha }}"
|
|
- name: "Setup JDK 16"
|
|
uses: "actions/setup-java@v2.1.0"
|
|
with:
|
|
distribution: "adopt"
|
|
java-version: "16"
|
|
- name: "Clean Build"
|
|
run: "./gradlew clean build -x test"
|
|
- name: Archive Artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: FastAsyncWorldEdit-Bukkit-1.17-${{ env.SHA }}
|
|
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-Bukkit-1.17-${{ env.SHA }}.jar
|