Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pgorecki committed Jan 13, 2024
1 parent f73375e commit bf1e5c9
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
appdir: "ui"
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: "promptsail-ui"
heroku_email: "[email protected]"
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
Expand Down

0 comments on commit bf1e5c9

Please sign in to comment.