Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CziSKY committed Mar 16, 2024
1 parent eee5f88 commit eaea5f8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: taboolib-intellij Build

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

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

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

- name: Get Version
id: get_version
run: echo "VERSION=$(./gradlew -q printVersion)" >> $GITHUB_ENV

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: taboolib-intellij-${{ env.VERSION }}-all
path: build/libs/*-${{ env.VERSION }}-all.jar
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ tasks {
}
}

tasks.register("printVersion") {
doLast {
println(project.version)
}
}

tasks.runIde {
maxHeapSize = "4G"

Expand Down

0 comments on commit eaea5f8

Please sign in to comment.