# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Deploy Baserates
on:
  push:
    branches: [ baserates ]
jobs:
  deploy: 
    runs-on: ubuntu-latest
    strategy:
      matrix: 
        node-version: [15.x]
        environment: [baserates]
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: '>=3.5' # Version range or exact version of a Python version to use, using SemVer's version range syntax
    - run: pip3 install --upgrade pip awsebcli
    - name: Run EB Deploy
      run: eb deploy --timeout 20 ${{ matrix.environment }}
      env: 
        AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        AWS_DEFAULT_REGION: "us-east-1"


# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Deploy Baserates
on:
  push:
    branches: [ baserates, devel ]
jobs:
  deploy: 
    runs-on: ubuntu-latest
    strategy:
      matrix: 
        node-version: [15.x]
        environment: [baserates]
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: '>=3.5' # Version range or exact version of a Python version to use, using SemVer's version range syntax
    - run: pip3 install --upgrade pip awsebcli
    - name: Run EB Deploy
      run: eb deploy --timeout 20 ${{ matrix.environment }}
      env: 
        AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        AWS_DEFAULT_REGION: "us-east-1"


Deploy to baserates from devel
Deploy to baserates from devel
