Commit f95809d6 authored by René Link's avatar René Link
Browse files

Update .gitlab-ci.yml file

parent 064511c7
Pipeline #806 passed with stages
in 2 minutes and 47 seconds
......@@ -31,6 +31,11 @@ cache:
- node_modules/
- .yarn/
.prepare_dist:
before_script:
- SETUP_WIN_BINARY_URL=$( echo "${PACKAGE_REGISTRY_URL}/${SETUP_WIN_BINARY}" | sed 's/ /_/g' )
- echo $SETUP_WIN_BINARY_URL
test:electron:
stage: test
before_script:
......@@ -46,7 +51,6 @@ dist:electron:
- yarn install --frozen-lockfile
script:
- npm run electron:build
- ls -al dist
artifacts:
paths:
- "dist/${SETUP_WIN_BINARY}"
......@@ -54,15 +58,15 @@ dist:electron:
# - node ./specs/start.js ./specs/async.spec.js
upload:
extends:
- .prepare_dist
stage: upload
image: curlimages/curl:latest
rules:
- if: $CI_COMMIT_TAG
script:
- URL=$( echo "${PACKAGE_REGISTRY_URL}/${SETUP_WIN_BINARY}" | sed 's/ /_/g' )
- echo $URL
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "dist/${SETUP_WIN_BINARY}" $URL
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "dist/${SETUP_WIN_BINARY}" $SETUP_WIN_BINARY_URL
release:
......@@ -73,8 +77,7 @@ release:
rules:
- if: $CI_COMMIT_TAG
script:
- URL=$( echo "${PACKAGE_REGISTRY_URL}/${SETUP_WIN_BINARY}" | sed 's/ /_/g' )
- |
release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \
--assets-link "{\"name\":\"${SETUP_WIN_BINARY}\",\"url\":\"${URL}\"}" \
--assets-link "{\"name\":\"${SETUP_WIN_BINARY}\",\"url\":\"${SETUP_WIN_BINARY_URL}\"}" \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment