Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
yuko1101 authored Mar 30, 2024
1 parent 56aa66a commit b7cfd23
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build with Gradle

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0

- name: Build with Gradle Wrapper
run: ./gradlew build

- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: build
path: |
build/libs/**/*.jar
build/libs/args.txt
!build/libs/LunarCoreGameProvider-*.jar

0 comments on commit b7cfd23

Please sign in to comment.