Skip to content

Commit

Permalink
Set up automatic building
Browse files Browse the repository at this point in the history
This commit adds multiple actions to build.yml that download java 17, build the mod, and upload the jars to Github Actions.
  • Loading branch information
PoolloverNathan authored and PoolloverNathan committed Feb 7, 2023
1 parent a83ce2f commit d1c9e0e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,23 @@ on:
pull_request:
jobs:
validation:
name: "Gradle Wrapper Validation"
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- name: Checkout
uses: actions/checkout@v3
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Install Java 17
uses: actions/setup-java@v3
with:
java-version: 17 # Can be more specific if neccesary
distribution: temurin
- name: Build
run: ./gradlew build
- name: Upload jars
uses: actions/upload-artifact@v3
with:
name: jars
path: build/libs
if-no-files-found: warn

0 comments on commit d1c9e0e

Please sign in to comment.