.gitlab-ci.yml 898 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
stages:
- build
- test
- release

variables:
  TAG: ${CI_COMMIT_TAG}
  # Releases
  RELEASE_API_URL: https://git.opencarp.org/api/v4/projects/${CI_PROJECT_ID}/releases
  RELEASE_ARCHIVE_URL: https://git.opencarp.org/openCARP/meshalyzer/-/archive/${CI_COMMIT_TAG}/meshalyzer-${CI_COMMIT_TAG}.tar.gz
  RELEASE_DESCRIPTION: |
    Meshalyzer is a graphical program for display time dependent data on 3D finite elment meshes. <br>
    Find the changelog [here](https://git.opencarp.org/openCARP/meshalyzer/blob/master/CHANGELOG.md).
                              
release-create:
  stage: release
  image: python:3.7
  only:
  - tags
  except:
  - branches
  before_script:
  # setup pipelines
  - git clone https://opencarp-admin:${PRIVATE_TOKEN}@git.opencarp.org/infrastructure/pipelines.git
  - pip install -r pipelines/requirements.txt
  script:
  - >
    python pipelines/scripts/create_release.py