Commit a92f5029 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

tests ci suite

parent 10afb705
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ upload:
    - ls max-build/
    - MAX_VERSION=$(cat max-build/version)
    - ASSET="max-v${MAX_VERSION}.zip"
    - PACKAGE_REGISTRY_URL=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/MaX/${MAX_VERSION}
    - echo "will upload "$ASSET" at "${PACKAGE_REGISTRY_URL}/${ASSET}
    - |
      curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file max-build/${ASSET} "${PACKAGE_REGISTRY_URL}/${ASSET}"
@@ -49,6 +50,9 @@ release:
  rules:
    - if: $CI_COMMIT_TAG
  script:
    - ls max-build/
    - MAX_VERSION=$(cat max-build/version)
    - PACKAGE_REGISTRY_URL=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/MaX/${MAX_VERSION}
    - |
      release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \
        --assets-link "{\"name\":\"${ASSET}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${ASSET}\"}"