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-10-08 17:03:41 +00:00
|
|
|
runs-on: "ubuntu-latest"
|
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-10-08 17:03:41 +00:00
|
|
|
- name : "Validate Gradle Wrapper"
|
|
|
|
uses : "gradle/wrapper-validation-action@v1.0.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-10-08 17:03:41 +00:00
|
|
|
- name: "Setup Java"
|
|
|
|
uses: "actions/setup-java@v2.3.1"
|
2021-07-25 15:46:33 +00:00
|
|
|
with:
|
2021-08-09 13:09:55 +00:00
|
|
|
distribution: "temurin"
|
2021-10-17 14:32:36 +00:00
|
|
|
cache: 'gradle'
|
2021-10-08 17:03:41 +00:00
|
|
|
java-version: "17"
|
2021-07-25 15:46:33 +00:00
|
|
|
- name: "Clean Build"
|
2021-10-17 14:32:36 +00:00
|
|
|
run: "./gradlew clean build --no-daemon"
|
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
|