message: Deploy master release
diff: @@ -21,6 +21,8 @@ addons:
  stages:
  - format
  - compile and test
  + - name: deploy
  + if: branch = master AND type = push
  jobs:
  include:
  @@ -100,3 +102,43 @@ jobs:
  - cmake --build . -- -j2
  - ctest --output-on-failure -j2
  + - stage: deploy
  + os: linux
  + env:
  + - TEST="Linux release"
  + script:
  + - mkdir build
  + - cd build
  + - CXX=g++ CC=gcc cmake -DRINGMESH_WITH_GRAPHICS:BOOL=OFF -DRINGMESH_WITH_UTILITIES:BOOL=ON ..
  + - cd Release
  + - cmake --build . -- -j2
  + - cmake --build . --target package
  + - mv `ls RINGMesh-*-Linux.tar.gz` RINGMesh-master-Linux.tar.gz
  + after_success:
  + - git clone -b gh-pages https://github.com/ringmesh/web
  + - cd web
  + - cp -f ../RINGMesh-master-Linux.tar.gz download/
  + - git add download/RINGMesh-master-Linux.tar.gz
  + - git commit -m "Update Linux master release"
  + - git push https://BotellaA:$GITHUB_TOKEN@github.com/ringmesh/web gh-pages
  +
  + - stage: deploy
  + os: osx
  + env:
  + - TEST="MacOS release"
  + script:
  + - mkdir build
  + - cd build
  + - CXX=clang++ CC=clang cmake -DRINGMESH_WITH_GRAPHICS:BOOL=OFF -DRINGMESH_WITH_UTILITIES:BOOL=ON ..
  + - cd Release
  + - cmake --build . -- -j2
  + - cmake --build . --target package
  + - mv `ls RINGMesh-*-Darwin.tar.gz` RINGMesh-master-Darwin.tar.gz
  + after_success:
  + - git clone -b gh-pages https://github.com/ringmesh/web
  + - cd web
  + - cp -f ../RINGMesh-master-Darwin.tar.gz download/
  + - git add download/RINGMesh-master-Darwin.tar.gz
  + - git commit -m "Update Darwin master release"
  + - git push https://BotellaA:$GITHUB_TOKEN@github.com/ringmesh/web gh-pages
  +
  