mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-11-17 05:23:46 +00:00
update github ci/cd scripts
This commit is contained in:
parent
e3958aff3f
commit
ad967c002a
1
.github/workflows/build_and_publish.yml
vendored
1
.github/workflows/build_and_publish.yml
vendored
@ -14,6 +14,7 @@ jobs:
|
||||
java-version: 17
|
||||
- name: Rewrite version
|
||||
run: |
|
||||
printf "\norg.gradle.jvmargs=-Xmx1g -Xms500m\nkotlin.daemon.jvmargs=-Xmx1g -Xms500m\norg.gradle.daemon=false" >> gradle.properties
|
||||
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
|
||||
cat gradle.properties | sed -e "s/^version=\([0-9\.]*\)/version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp
|
||||
rm gradle.properties
|
||||
|
1
.github/workflows/docker-publish.yml
vendored
1
.github/workflows/docker-publish.yml
vendored
@ -16,6 +16,7 @@ jobs:
|
||||
java-version: 17
|
||||
- name: Rewrite version
|
||||
run: |
|
||||
printf "\norg.gradle.jvmargs=-Xmx1g -Xms500m\nkotlin.daemon.jvmargs=-Xmx1g -Xms500m\norg.gradle.daemon=false" >> gradle.properties
|
||||
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
|
||||
if [[ "$branch" != "master" ]]; then
|
||||
cat gradle.properties | sed -e "s/^version=\([0-9\.]*\)/version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp
|
||||
|
Loading…
Reference in New Issue
Block a user