From bf1e5c977dd516f685f82b439fafa7a750e32449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20G=C3=B3recki?= Date: Sat, 13 Jan 2024 16:07:03 +0100 Subject: [PATCH] update workflow --- .github/workflows/main.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75a80afd..f501a5d4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,20 +25,23 @@ jobs: npm --version npm install - - name: Build app + - name: Build the Docker image + run: make build + env: + BUILD_SHA: ${{ github.sha }} + + - name: Push Docker image to Heroku + env: + HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} run: | - cd ui - npm run build + docker images + docker tag prompt_sail_ui:latest registry.heroku.com/promptsail-ui/web + docker push registry.heroku.com/promptsail-ui/web - - name: Deploy to Heroku - uses: akhileshns/heroku-deploy@v3.13.15 - with: - appdir: "ui" - heroku_api_key: ${{ secrets.HEROKU_API_KEY }} - heroku_app_name: "promptsail-ui" - heroku_email: "przemyslaw.gorecki@gmail.com" - buildpack: "heroku-community/nginx" - flags: "--force" + - name: Release to Heroku + env: + HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} + run: heroku container:release web -a promptsail build-test-deploy-backend: if: ${{ false }} # disable for now