2020-11-23 17:49:08 +00:00
|
|
|
name: "build"
|
|
|
|
|
|
|
|
on: ["pull_request", "push"]
|
2021-07-25 15:46:33 +00:00
|
|
|
|
2020-11-23 17:49:08 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
2021-07-25 15:46:33 +00:00
|
|
|
runs-on: "ubuntu-20.04"
|
2020-11-23 17:49:08 +00:00
|
|
|
steps:
|
2021-07-25 15:46:33 +00:00
|
|
|
- name: "Checkout Repository"
|
|
|
|
uses: "actions/checkout@v2.3.4"
|
2021-07-28 13:04:49 +00:00
|
|
|
- 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 }}"
|
2021-07-25 15:46:33 +00:00
|
|
|
- name: "Setup JDK 16"
|
2021-08-09 13:09:55 +00:00
|
|
|
uses: "actions/setup-java@v2.2.0"
|
2021-07-25 15:46:33 +00:00
|
|
|
with:
|
2021-08-09 13:09:55 +00:00
|
|
|
distribution: "temurin"
|
2021-07-01 20:16:25 +00:00
|
|
|
java-version: "16"
|
2021-07-25 15:46:33 +00:00
|
|
|
- name: "Clean Build"
|
2021-08-10 08:31:37 +00:00
|
|
|
run: "./gradlew clean build"
|
2021-07-28 13:04:49 +00:00
|
|
|
- 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
|