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