Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74515305 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

add publish-mac task in CI

parent de8e5572
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -137,6 +137,27 @@ publish-ubuntu:
    - if: '$CI_COMMIT_TAG'
      when: manual


publish-macos:
  image: registry.gitlab.e.foundation/e/devices/easy-installer:stable
  stage: publish
  variables:
    RELEASE_TYPE: beta
  before_script:
    - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
    - eval $(ssh-agent -s)
    - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh
    - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
    - chmod 644 ~/.ssh/known_hosts
  script:
    - "rsync -avz Mac-build/EasyInstaller.app $PUBLISH_USER@$PUBLISH_URL:$PUBLISH_DEST"
    - ssh $PUBLISH_USER@$PUBLISH_URL "mv $PUBLISH_DEST/* $RELEASE_DEST/"
  rules:
    - if: '$CI_COMMIT_TAG'
      when: manual

publish-windows:
  image: registry.gitlab.e.foundation/e/devices/easy-installer:stable
  stage: publish