diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e90c685..dda212d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,10 @@ variables: NEW_COPYRIGHT: 'EgalWare 2022+' JSON_FILE: '' JSON_FILE_RAW: '' + NET_SHARE_X: '\\iis01\c$\inetpub\wwwroot\Test3D\' + NET_USERQ: 'steamw\egalware' + SRC_PATH: 'TestArea_IIS01\' + DIR_PATH: 'THREEJS_DOORS' .version-fix: &version-fix @@ -22,6 +26,16 @@ variables: Write-Output $resoconto; echo "VersionFix done" +# helper copia area test 3D verso cartella di rete X:\ (IIS01) delle cartelle della TestArea_IIS01 +.ReplicaX: &ReplicaX + - | + net use X: /delete + SLEEP 2 + net use X: $env:NET_SHARE_X /u:$env:NET_USERQ $SDRIVE_PASSWD + ROBOCOPY /MIR $env:SRC_PATH\$env:DIR_PATH\ X:\PROVA_SAM\$env:DIR_PATH\ + SLEEP 2 + net use X: /delete + image: node:latest @@ -30,15 +44,15 @@ stages: - release # ---------- Upload Debug/Unstable ---------- - WebGl3D:deploy: - before_script: - - *version-fix - tags: - - win + stage: build only: - develop - stage: build + 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" @@ -49,15 +63,16 @@ WebGl3D:deploy: - echo "//nexus.steamware.net/repository/npm-hosted/:_authToken=$NPM_TOKEN" - npm publish - # ---------- RELEASE ---------- +# ---------- RELEASE ---------- WebGl3D:release: - before_script: - - *version-fix - tags: - - win + stage: release only: - main - stage: release + 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"