chore: update ci usage of artifact
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
image: docker-repository-greenskin.cailleaux.com/greenskin/ci-builder-node14:2.0
|
||||
image: node:14.15.5-stretch-slim
|
||||
|
||||
variables:
|
||||
GIT_DEPTH: 0
|
||||
@@ -6,7 +6,6 @@ variables:
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build:
|
||||
stage: build
|
||||
@@ -25,52 +24,8 @@ build:
|
||||
when: on_success
|
||||
paths:
|
||||
- dist/wfrp4e-actor-sheet-print.zip
|
||||
expire_in: never
|
||||
only:
|
||||
- tags
|
||||
- master
|
||||
|
||||
build_beta:
|
||||
stage: build
|
||||
script:
|
||||
- npm ci
|
||||
- npm run build
|
||||
- mkdir -p dist/lang
|
||||
- mkdir -p dist/styles
|
||||
- cp lang/* dist/lang/
|
||||
- cp styles/* dist/styles/
|
||||
- cp module-beta.json dist/module.json
|
||||
- cd dist
|
||||
- zip wfrp4e-actor-sheet-print.zip -r *.* elements lang styles -x ".*"
|
||||
artifacts:
|
||||
name: wfrp4e-actor-sheet-print
|
||||
when: on_success
|
||||
paths:
|
||||
- dist/wfrp4e-actor-sheet-print.zip
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH =~ /^(dev)\/.*$/'
|
||||
when: on_success
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
script:
|
||||
- git config --global user.email "$GIT_USER_EMAIL"
|
||||
- git config --global user.name "$GIT_USER_NAME"
|
||||
- git add -f dist/wfrp4e-actor-sheet-print.zip
|
||||
- git commit -m "push artifact on dist branch"
|
||||
- git remote set-url origin $GIT_SSH_URL
|
||||
- git push -f origin HEAD:dist
|
||||
only:
|
||||
- master
|
||||
|
||||
deploy_beta:
|
||||
stage: deploy
|
||||
script:
|
||||
- git config --global user.email "$GIT_USER_EMAIL"
|
||||
- git config --global user.name "$GIT_USER_NAME"
|
||||
- git add -f dist/wfrp4e-actor-sheet-print.zip
|
||||
- git commit -m "push artifact on dist-beta branch"
|
||||
- git remote set-url origin $GIT_SSH_URL
|
||||
- git push -f origin HEAD:dist-beta
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH =~ /^(dev)\/.*$/'
|
||||
when: on_success
|
||||
|
||||
Reference in New Issue
Block a user