diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml new file mode 100644 index 000000000..2130ba12a --- /dev/null +++ b/.github/workflows/deploy_dev.yml @@ -0,0 +1,24 @@ +name: Deploy to Development + +on: + push: + branches: + - development + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Deploy Development Backend + uses: behe/heroku-build@v1 + with: + app-name: "dev-branch-backend" + api-key: "${{secrets.HEROKU_API_KEY}}" + path: "./backend/" + - name: Deploy Development Frontend + uses: behe/heroku-build@v1 + with: + app-name: "dev-branch-frontend" + api-key: "${{secrets.HEROKU_API_KEY}}" + path: "./frontend/" \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy_prod.yml similarity index 89% rename from .github/workflows/deploy.yml rename to .github/workflows/deploy_prod.yml index d0e97d344..76d42174b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy_prod.yml @@ -1,9 +1,8 @@ -name: Deploy to Heroku +name: Deploy to Production on: - push: - branches: - - master + release: + types: [published] jobs: deploy: