dfg_3dviewer_js_library/.gitlab-ci.yml
2026-06-25 10:01:49 +02:00

41 lines
858 B
YAML

stages:
- build
- release
.build-base:
image: node:24-bookworm
before_script:
- apt-get update -qq && apt-get install -y -qq zip
rules:
- if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "web"
build-library:
extends: .build-base
stage: build
script:
- npm ci
- npm run build:library
- node ./scripts/pack-library.js
artifacts:
paths:
- dfg-3dviewer-library.zip
expire_in: 4 weeks
release-library:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
needs:
- job: build-library
artifacts: true
rules:
- if: $CI_COMMIT_TAG
script:
- echo "Publishing release $CI_COMMIT_TAG"
release:
tag_name: $CI_COMMIT_TAG
name: Release $CI_COMMIT_TAG
assets:
paths:
- path: dfg-3dviewer-library.zip
name: dfg-3dviewer-library.zip