Skip to content
Snippets Groups Projects
main.yml 670 B
name: Main
on:
  push:
    branches:
      - master

jobs:
  test:
    name: test
    runs-on: ubuntu-latest
    steps:
      - run: pwd
      - run: cd backend/secfit
      - run: apt-get update -qy
      - run: pip install -r requirements.txt

  staging:
    name: staging
    runs-on: ubuntu-latest
    container: ruby
    needs: [test]
    steps:
      - run: apt-get update -qy
      - run: apt-get install -y ruby-dev
      - run: gem install dpl
      - run: dpl --provider=heroku --app=tdt4242-base-frontend --api-key=${{secrets.HEROKU_STAGING_API_KEY}}
      - run: dpl --provider=heroku --app=tdt4242-base-backend --api-key=${{secrets.HEROKU_STAGING_API_KEY}}