Skip to content

Commit

Permalink
Keep version file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Dec 2, 2023
1 parent cb2c008 commit 9eeec52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jitpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ jdk:
- openjdk17
before_install:
- echo "Before install"
# Delete all folders and files, except .git, and plugin and move the content of `plugin` folder to the root
- find . -maxdepth 1 ! -name 'plugin' ! -name '.git' ! -name '.' -exec rm -rf {} +
# Delete all folders and files, except .git, plugin/, version.txt and move the content of `plugin` folder to the root
- find . ! -name '.git' ! -name 'plugin' ! -name 'version.txt' -maxdepth 1 -exec rm -rf {} \;
- mv plugin/* .
- rm -rf plugin
install:
Expand Down
3 changes: 2 additions & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ plugins {
}

group = "com.github.gabber235"
version = file("../version.txt").readText().trim()
val versionFile = if (file("version.txt").exists()) file("version.txt") else file("../version.txt")
version = versionFile.readText().trim()

repositories {
mavenCentral()
Expand Down

0 comments on commit 9eeec52

Please sign in to comment.