Skip to content

Commit

Permalink
Allow manual heroku deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jasozh committed Oct 19, 2024
1 parent 3ab8217 commit 095a8aa
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,33 @@ on:
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js environment to run migrations
uses: actions/setup-node@v3
with:
node-version: '18.x'
with:
node-version: "18.x"

- name: Install dependencies and run migrations
working-directory: backend/
env:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: |
yarn install
npx prisma migrate deploy
- name: Build, Push and Release a Docker container to Heroku.
env:
env:
ENV_FILE: ${{ secrets.ENV_FILE }}
uses: gonuit/heroku-docker-deploy@v1.3.3
uses: gonuit/heroku-docker-deploy@v1.3.3
with:
email: ${{ secrets.HEROKU_EMAIL }}

Expand Down

0 comments on commit 095a8aa

Please sign in to comment.