mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 06:45:33 +00:00
Added gitversion to CI
This commit is contained in:
parent
d2c09a33ff
commit
86138fe65e
1 changed files with 9 additions and 2 deletions
|
|
@ -4,6 +4,9 @@ workflow:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == 'master'
|
- if: $CI_COMMIT_BRANCH == 'master'
|
||||||
|
|
||||||
|
include:
|
||||||
|
- component: $CI_SERVER_FQDN/guided-explorations/ci-components/ultimate-auto-semversioning/ultimate-auto-semversioning@1.2.8
|
||||||
|
|
||||||
# NOTE: If your `project.godot` is at the repository root, set `PROJECT_PATH` below to ".".
|
# NOTE: If your `project.godot` is at the repository root, set `PROJECT_PATH` below to ".".
|
||||||
|
|
||||||
# Cache imported assets between runs
|
# Cache imported assets between runs
|
||||||
|
|
@ -31,6 +34,8 @@ linux:
|
||||||
stage: export
|
stage: export
|
||||||
script:
|
script:
|
||||||
- mkdir -v -p build/linux
|
- mkdir -v -p build/linux
|
||||||
|
- GIT_ASSEMBLY_SEM_FILE_VER="${GitVersion_Major}.${GitVersion_Minor}.${GitVersion_Patch}.0"
|
||||||
|
- GIT_ASSEMBLY_SEM_VER="${GitVersion_Major}.${GitVersion_Minor}.${GitVersion_Patch}.0"
|
||||||
- EXPORT_DIR="$(readlink -f build)"
|
- EXPORT_DIR="$(readlink -f build)"
|
||||||
- cd $PROJECT_PATH
|
- cd $PROJECT_PATH
|
||||||
- godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
|
- godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
|
||||||
|
|
@ -43,6 +48,8 @@ windows:
|
||||||
stage: export
|
stage: export
|
||||||
script:
|
script:
|
||||||
- mkdir -v -p build/windows
|
- mkdir -v -p build/windows
|
||||||
|
- GIT_ASSEMBLY_SEM_FILE_VER="${GitVersion_Major}.${GitVersion_Minor}.${GitVersion_Patch}.0"
|
||||||
|
- GIT_ASSEMBLY_SEM_VER="${GitVersion_Major}.${GitVersion_Minor}.${GitVersion_Patch}.0"
|
||||||
- EXPORT_DIR="$(readlink -f build)"
|
- EXPORT_DIR="$(readlink -f build)"
|
||||||
- cd $PROJECT_PATH
|
- cd $PROJECT_PATH
|
||||||
- godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
|
- godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
|
||||||
|
|
@ -55,14 +62,14 @@ windows:
|
||||||
itchio:linux:
|
itchio:linux:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- butler push ./build/linux $ITCHIO_USERNAME/$ITCHIO_GAME:linux
|
- butler push ./build/linux $ITCHIO_USERNAME/$ITCHIO_GAME:linux --userversion ${GitVersion_FullSemVer}
|
||||||
dependencies:
|
dependencies:
|
||||||
- linux
|
- linux
|
||||||
|
|
||||||
itchio:windows:
|
itchio:windows:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- butler push ./build/windows $ITCHIO_USERNAME/$ITCHIO_GAME:windows
|
- butler push ./build/windows $ITCHIO_USERNAME/$ITCHIO_GAME:windows --userversion ${GitVersion_FullSemVer}
|
||||||
dependencies:
|
dependencies:
|
||||||
- windows
|
- windows
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue