name: Deploy Production
#This is triggered by deployments to the repository
on:
  push:
    branches:
      - master

jobs:
  # TODO: run tests
  deploy:
    name: Deploy Production
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1

      - name: Deploy to Now
        env:
          ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
        run: now --token $ZEIT_TOKEN --no-clipboard --prod --build-env NOW_GITHUB_COMMIT_SHA=${{ github.sha }}
