name: Deploy run-name: deploy frontned to remote server on: [push] jobs: copy: runs-on: ubuntu-latest steps: - name: Test if destination directory variable is set if: ${{vars.DESTINATION_DIR == '' }} run: exit 1 - name: Configure SSH run: | mkdir -p ~/.ssh/ echo "$SSH_KEY" > ~/.ssh/remote.key chmod 600 ~/.ssh/remote.key cat >>~/.ssh/config <