diff --git a/.github/scripts/deploy-web.sh b/.github/scripts/deploy-web.sh deleted file mode 100755 index 0b321a2e3..000000000 --- a/.github/scripts/deploy-web.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright (c) 2023 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0 which is available at -# http://www.eclipse.org/legal/epl-2.0, or the W3C Software Notice and -# Document License (2015-05-13) which is available at -# https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document. -# -# SPDX-License-Identifier: EPL-2.0 OR W3C-20150513 -# - -TMP_PASS_FILE="$(mktemp)" -echo "$SSH_PASS" > $TMP_PASS_FILE -ssh -i $TMP_PASS_FILE -o StrictHostKeyChecking=no -o LogLevel=error $SSH_HOST "rm -r -f thingweb-playground; git clone https://github.com/eclipse-thingweb/playground.git; cd playground; lerna bootstrap; cd ./packages/web; rm -r -f /var/www/html/playground/*; cp -L -r ./* /var/www/html/playground; echo cleaned and copy to webdir; echo CD DONE" diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 625c364e2..e63fd4d7f 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -44,21 +44,3 @@ jobs: - name: TM test run: node packages/cli/index.js -t TM -i examples/tm/*/*.jsonld - - deploy-via-ssh: - runs-on: ubuntu-latest - - needs: setup-and-test - - if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository_owner == 'thingweb' }} - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Run remote commands script - run: ./.github/scripts/deploy-web.sh - shell: bash - env: - SSH_PASS: ${{ secrets.SSH_PASS }} - SSH_HOST: ${{ secrets.SSH_HOST }}