Skip to content

Build and deploy CMS #6

Build and deploy CMS

Build and deploy CMS #6

name: Build and deploy CMS
run-name: Build and deploy CMS
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'cms/**'
env:
DOTNET_APP_LOCATION: cms
DOTNET_APP_NAME: Explore.Cms
OUTPUT_LOCATION: ${{ github.workspace }}/outputs/cms
jobs:
build:
name: Build CMS
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Build CMS
uses: ./.github/actions/build-dotnet-app
with:
app_location: ${{ env.DOTNET_APP_LOCATION }}
app_name: ${{ env.DOTNET_APP_NAME }}
output_location: ${{ env.OUTPUT_LOCATION }}
deploy-dev:
needs: [build]
runs-on: ubuntu-latest
environment: dev
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Deploy CMS
uses: ./.github/actions/deploy-azure-function-app
with:
app_location: ${{ env.OUTPUT_LOCATION }}
app_artifact_name: ${{ env.DOTNET_APP_NAME }}
app_name: ${{ vars.CMS_FUNCTION_APP_NAME }}
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}