mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 06:55:34 +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:
|
||||
- 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 ".".
|
||||
|
||||
# Cache imported assets between runs
|
||||
|
|
@ -31,6 +34,8 @@ linux:
|
|||
stage: export
|
||||
script:
|
||||
- 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)"
|
||||
- cd $PROJECT_PATH
|
||||
- godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
|
||||
|
|
@ -43,6 +48,8 @@ windows:
|
|||
stage: export
|
||||
script:
|
||||
- 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)"
|
||||
- cd $PROJECT_PATH
|
||||
- godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
|
||||
|
|
@ -55,14 +62,14 @@ windows:
|
|||
itchio:linux:
|
||||
stage: deploy
|
||||
script:
|
||||
- butler push ./build/linux $ITCHIO_USERNAME/$ITCHIO_GAME:linux
|
||||
- butler push ./build/linux $ITCHIO_USERNAME/$ITCHIO_GAME:linux --userversion ${GitVersion_FullSemVer}
|
||||
dependencies:
|
||||
- linux
|
||||
|
||||
itchio:windows:
|
||||
stage: deploy
|
||||
script:
|
||||
- butler push ./build/windows $ITCHIO_USERNAME/$ITCHIO_GAME:windows
|
||||
- butler push ./build/windows $ITCHIO_USERNAME/$ITCHIO_GAME:windows --userversion ${GitVersion_FullSemVer}
|
||||
dependencies:
|
||||
- windows
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue