Skip to content

Commit

Permalink
build: ci auto building
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdm2883 committed Jan 4, 2025
1 parent 5166769 commit b79adfc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build a preview version
on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout master
uses: actions/checkout@v4

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

- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew :script-editor:shadowJar
./gradlew :script-loader:shadowJar
- name: Upload artifact (editor)
uses: actions/upload-artifact@v4
with:
name: script-editor-${{ github.sha }}
path: script-editor/build/libs/*.jar

- name: Upload artifact (loader)
uses: actions/upload-artifact@v4
with:
name: script-loader-${{ github.sha }}
path: script-loader/build/libs/*.jar
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ plugins {
}

version = libs.versions.allaymc.kts.host.get()
subprojects { version = rootProject.version }
1 change: 1 addition & 0 deletions script-editor/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.gradleup.shadow)
}

dependencies {
Expand Down

0 comments on commit b79adfc

Please sign in to comment.