Skip to content

Deploy BE

Deploy BE #3

Workflow file for this run

name: Deploy BE
on:
workflow_dispatch:
pull_request:
types: [ closed ]
branches:
- deployed
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- run: cd api && dotnet publish -c Release -o publish
- uses: AkhileshNS/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
usedocker: false
env: #only the key names below should be prefixed HD_ and the ${{secrets.NAME}} should not
HD_DbConnection: ${{secrets.DbConnection}}