Skip to content

Add tracking for tif downloads #30

Add tracking for tif downloads

Add tracking for tif downloads #30

Workflow file for this run

name: deploy
on:
push:
branches:
- develop
pull_request:
types: [opened, edited, synchronize, reopened, ready_for_review]
jobs:
deploy-dev:
runs-on: ubuntu-latest
steps:
- name: Setup ssh
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Create SSH key
run: |
mkdir -p ~/.ssh/
echo "$SSH_PRIVATE_KEY" > ../private.key
chmod 600 ../private.key
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
shell: bash
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_KNOWN_HOSTS: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: Deploy to server
run: |
ssh -p 33322 -o "StrictHostKeyChecking no" [email protected] << 'ENDSSH'
[ ! -d ~/oam-browser ] && git clone https://github.com/konturio/oam-browser.git ~/oam-browser
set -e
cd ~/oam-browser && sudo git fetch && sudo git checkout ${{ github.head_ref || github.ref_name }} && sudo git pull
source ~/.bashrc
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm use 8
sudo rm -rf build && REACT_APP_DROPBOX_APP_KEY=${{ secrets.REACT_APP_DROPBOX_APP_KEY }} PUBLIC_URL=/oam yarn build && cd build && sudo cp -r . /var/www/html/oam
ENDSSH