Skip to content

Commit

Permalink
patch: fix deploy development
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Fran committed Jan 31, 2024
1 parent 7e3f098 commit e0c9103
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-development.yml
@@ -1,7 +1,7 @@
name: "Build and Deploy [development]"
on:
push:
paths: [ 'simplecoreapi/**' ]
branches: [development]
jobs:
build:
name: "Build and Deploy [development]"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Expand Up @@ -20,7 +20,7 @@ plugins {
- If the environment variable ENV is set to dev, the project
version will have appended the git commit short hash + SNAPSHOT
*/
val projectVersion = (env["VERSION"] ?: "1.0.0") + (if (env["ENV"] == "dev") "-${env["GIT_COMMIT_SHORT_HASH"] ?: UUID.randomUUID().toString().replace("-", "").split("").shuffled().joinToString("").substring(0, 8)}-SNAPSHOT" else "")
val projectVersion = (env["VERSION"] ?: "1.0.0") + (if (env["ENV"] == "dev") "-${env["GIT_COMMIT_SHORT_HASH"] ?: UUID.randomUUID().toString().replace("-", "").split("").shuffled().joinToString("").substring(0, 8)}" else "")
println("This build version was '$projectVersion'")

val repo = "https://github.com/TheProgramSrc/SimpleCoreAPI"
Expand Down

0 comments on commit e0c9103

Please sign in to comment.