Skip to content

Heroku: Hosting The Next.Js Frontend App #64

Heroku: Hosting The Next.Js Frontend App

Heroku: Hosting The Next.Js Frontend App #64

name: Deploy Frontend to Heroku
run-name: "Heroku: Hosting The Next.Js Frontend App"
on:
push:
branches:
- master
- main
workflow_run:
workflows:
- "Creating And Deploying Frontend Docker Images"
types:
- completed
jobs:
deploy-frontend:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment:
name: production
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy Frontend to Heroku
uses: akhileshns/heroku-deploy@v3.12.12
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{secrets.HEROKU_FRONTEND}}
heroku_email: ${{secrets.HEROKU_EMAIL}}
project_path: frontend