3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-20 18:00:09 +01:00
FastAsyncWorldEdit/.github/workflows/build.yml

35 Zeilen
1014 B
YAML

2020-11-23 18:49:08 +01:00
name: "build"
on: ["pull_request", "push"]
2020-11-23 18:49:08 +01:00
jobs:
build:
2021-10-08 19:03:41 +02:00
runs-on: "ubuntu-latest"
2020-11-23 18:49:08 +01:00
steps:
- name: "Checkout Repository"
uses: "actions/checkout@v2.3.4"
2021-10-08 19:03:41 +02:00
- name : "Validate Gradle Wrapper"
uses : "gradle/wrapper-validation-action@v1.0.4"
2021-07-28 15:04:49 +02: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 19:03:41 +02:00
- name: "Setup Java"
uses: "actions/setup-java@v2.3.1"
with:
2021-08-09 15:09:55 +02:00
distribution: "temurin"
cache: 'gradle'
2021-10-08 19:03:41 +02:00
java-version: "17"
- name: "Clean Build"
run: "./gradlew clean build --no-daemon"
2021-07-28 15:04:49 +02: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