File tree Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,13 @@ jobs:
2424 with :
2525 java-version : 11
2626
27- - name : Write value to Properties-file
28- uses :
christian-draeger/[email protected] 29- with :
30- path : ' ./gradle.properties'
31- property : |
32- 'version'
33- 'server'
34- value : |
35- 'Build ${{github.run_number}}'
36- 'https://kotlingames.shop'
37-
27+ - name : set properties value of server
28+ run : |
29+ setProperty(){
30+ awk -v pat="^$1=" -v value="$1=$2" '{ if ($0 ~ pat) print value; else print $0; }' $3 > $3.tmp
31+ mv $3.tmp $3
32+ }
33+ setProperty "server" "https://kotlingames.shop" "gradle.properties"
3834 - run : git tag ${{github.run_number}}
3935
4036 - name : Grant execute permission for gradlew
Original file line number Diff line number Diff line change 11import korlibs.korge.gradle.configureAutoVersions
22
33plugins {
4+ @Suppress(" DSL_SCOPE_VIOLATION" )
45 alias(libs.plugins.korge) apply false
56}
67
Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ dependencies {
2323@Suppress(" UnstableApiUsage" )
2424tasks.withType<ProcessResources > {
2525 filesMatching(" client.properties" ) {
26- expand(" version " to properties[ " version " ] )
26+ expand(properties)
2727 }
2828}
Original file line number Diff line number Diff line change 1+ server =$server
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ org.gradle.jvmargs=-Xmx4g
22kotlin.mpp.stability.nowarn =true
33# org.gradle.unsafe.configuration-cache=true
44kotlin.mpp.androidSourceSetLayoutVersion1.nowarn =true
5+ server =https://localhost:8080
You can’t perform that action at this time.
0 commit comments