From 2c885a3befd28ef8f57377dfd72905f718038ca7 Mon Sep 17 00:00:00 2001 From: Daithi Hearn Date: Fri, 2 Feb 2024 21:55:34 +0100 Subject: [PATCH] chore: changing deployment method --- .github/workflows/deploy-to-heroku.yml | 19 +++++++++++++++++++ heroku.yml | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/deploy-to-heroku.yml create mode 100644 heroku.yml diff --git a/.github/workflows/deploy-to-heroku.yml b/.github/workflows/deploy-to-heroku.yml new file mode 100644 index 0000000..5eb98df --- /dev/null +++ b/.github/workflows/deploy-to-heroku.yml @@ -0,0 +1,19 @@ +name: Deploy to Heroku + +on: + release: + types: [ published ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Deploy to Heroku + uses: akhileshns/heroku-deploy@v3.12.12 + with: + heroku_api_key: ${{ secrets.HEROKU_API_KEY }} + heroku_app_name: ${{ secrets.HEROKU_APP_NAME }} + heroku_email: ${{ secrets.EMAIL }} diff --git a/heroku.yml b/heroku.yml new file mode 100644 index 0000000..f8b4a9c --- /dev/null +++ b/heroku.yml @@ -0,0 +1,5 @@ +build: + docker: + web: Dockerfile +run: + web: python TurnOnSmartPlug.py