Plex-FAWE/.github/workflows/build.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1014 B
YAML
Raw Normal View History

2020-11-23 17:49:08 +00:00
name: "build"
on: ["pull_request", "push"]
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:
- 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"
with:
2021-08-09 13:09:55 +00:00
distribution: "temurin"
cache: 'gradle'
2021-10-08 17:03:41 +00:00
java-version: "17"
- name: "Clean Build"
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