From 1a73e06fc47fbc5074a751e1dd6dfcb7a2fce7a0 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Sat, 22 Jun 2024 12:15:18 +0200 Subject: [PATCH] Update yaml x CI/CD (proviamo nuovo pacchetto...) --- .gitlab-ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a6fa7ed..bd32657 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,8 +11,8 @@ variables: NET_SHARE_X: '\\iis01\Test3D' NET_USERQ: 'steamw\egalware' SRC_PATH: 'TestArea_IIS01\' - DIR_PATH: 'THREEJS_DOORS' - + # copio tutte le subdir in area test + DIR_PATH: '' .version-fix: &version-fix - | @@ -46,8 +46,10 @@ stages: - release # ---------- Upload Debug/Unstable ---------- -WebGl3D:deploy: +WebGl.Icarus:deploy: stage: build + variables: + APP_NAME: WebGl-Visualizer only: - develop tags: @@ -65,9 +67,53 @@ WebGl3D:deploy: - echo "//nexus.steamware.net/repository/npm-hosted/:_authToken=$NPM_TOKEN" - npm publish +WebGl.Door:deploy: + stage: build + variables: + APP_NAME: WebGl-Door-Visualizer + only: + - develop + tags: + - win + before_script: + - *version-fix + - *ReplicaX + script: + - cd .\WebDoorView\src\ + - Set-Content -Path "./.npmrc" -Value "email=ceo@steamware.net `nalways-auth=true `n//nexus.steamware.net/repository/npm-hosted/:_authToken=$NPM_TOKEN" + - $JSON_FILE = Get-Content '.\package.json' -raw + - $JSON_FILE_RAW = $JSON_FILE | ConvertFrom-Json + - $JSON_FILE_RAW.version="$env:NUM_DEB" + - $JSON_FILE_RAW | ConvertTo-Json -depth 32| set-content '.\package.json' + - echo "//nexus.steamware.net/repository/npm-hosted/:_authToken=$NPM_TOKEN" + - npm publish + # ---------- RELEASE ---------- -WebGl3D:release: +WebGl3D.Icarus:release: stage: release + variables: + APP_NAME: WebGl-Visualizer + only: + - main + tags: + - win + before_script: + - *version-fix + - *ReplicaX + script: + - cd .\IcarusView\WebGl\ + - Set-Content -Path "./.npmrc" -Value "email=ceo@steamware.net `nalways-auth=true `n//nexus.steamware.net/repository/npm-hosted/:_authToken=$NPM_TOKEN" + - $JSON_FILE = Get-Content '.\package.json' -raw + - $JSON_FILE_RAW = $JSON_FILE | ConvertFrom-Json + - $JSON_FILE_RAW.version="$env:NEW_REL" + - $JSON_FILE_RAW | ConvertTo-Json -depth 32| set-content '.\package.json' + - echo "//nexus.steamware.net/repository/npm-hosted/:_authToken=$NPM_TOKEN" + - npm publish + +WebGl3D.Door:release: + stage: release + variables: + APP_NAME: WebGl-Door-Visualizer only: - main tags: