Commit 3f924b30 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

tests ci suite

parent c6db3e04
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -24,11 +24,11 @@ build:
    - cd tools
    - ./build.sh
    - echo $MAX_VERSION > dist/version
    - mv dist ../
    - ls ../dist
    - mv dist ../max-build
    - ls ../max-build
  artifacts:
    paths:
      - dist/
      - max-build/

upload:
  stage: upload
@@ -36,11 +36,11 @@ upload:
  rules:
    - if: $CI_COMMIT_TAG
  script:
    - MAX_VERSION=$(cat dist/version)
    - MAX_VERSION=$(cat max-build/version)
    - ASSET="max-V${MAX_VERSION}.zip"
    - echo "ASSET = "$ASSET
    - |
      curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file dist/${ASSET} "${PACKAGE_REGISTRY_URL}/${ASSET}"
      curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file max-build/${ASSET} "${PACKAGE_REGISTRY_URL}/${ASSET}"

release:
  # Caution, as of 2021-02-02 these assets links require a login, see: