Build and deploy CMS #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |