Newer
Older
CrypticOreWallet / .github / workflows / deploy-dev.yml
@Drew Lemmy Drew Lemmy on 9 Mar 2021 946 bytes chore: workflow attempt 4
name: Deploy dev build

on: push

jobs:
  deploy-dev:
    runs-on: ubuntu-20.04

    steps:
    - name: Install git
      run: |
        sudo apt-get install -y software-properties-common \
        && sudo apt-get update \
        && sudo add-apt-repository -y ppa:git-core/ppa \
        && sudo apt-get update \
        && sudo apt-get install -y git

    - name: Check out repository code
      uses: actions/checkout@v2
      with:
        fetch-depth: 0

    - name: Install dependencies
      run: npm install --legacy-peer-deps

    - name: Build
      run: npm run full-build
        
    - name: Deploy to dev server
      uses: appleboy/scp-action@master
      with:
        host: ${{ secrets.DEV_DEPLOY_HOST }}
        username: ${{ secrets.DEV_DEPLOY_USER }}
        key: ${{ secrets.DEV_DEPLOY_KEY }}
        port: ${{ secrets.DEV_DEPLOY_PORT }}
        source: "build"
        target: ${{ secrets.DEV_DEPLOY_ROOT }}
        rm: true