Update yaml x CI/CD (proviamo nuovo pacchetto...)

This commit is contained in:
Samuele Locatelli
2024-06-22 12:15:18 +02:00
parent 1581e03d3e
commit 1a73e06fc4
+50 -4
View File
@@ -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: