fix: update Telerik API key reference in NuGet.config and adjust Azur… #20
This file contains hidden or 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 to Azure Web App | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| AZURE_WEBAPP_NAME: telerik-blazor-parag-demo | |
| AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root | |
| DOTNET_VERSION: '9.0.x' # set this to the .NET Core version to use | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| environment: Production | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| TELERIK_LICENSE: ${{ secrets.KENDO_UI_LICENSE }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Build with dotnet | |
| run: dotnet build --configuration Release | |
| env: | |
| TELERIK_API_KEY: ${{ secrets.TELERIK_API_KEY }} | |
| - name: dotnet publish | |
| run: dotnet publish -c Release -o ./publish | |
| - name: 'Az CLI login' | |
| uses: azure/login@v2 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - name: Configure Nuclia App Settings | |
| uses: azure/cli@v2 | |
| with: | |
| inlineScript: | | |
| az webapp config appsettings set --name ${{ env.AZURE_WEBAPP_NAME }} --resource-group blazor-PaRAG-demo --settings \ | |
| NucliaDb__KnowledgeBoxId="${{ secrets.NUCLIADB_KNOWLEDGEBOXID }}" \ | |
| NucliaDb__ApiKey="${{ secrets.NUCLIADB_APIKEY }}" \ | |
| NucliaDbCharts__KnowledgeBoxId="${{ secrets.NUCLIADBCHARTS_KNOWLEDGEBOXID }}" \ | |
| NucliaDbCharts__ApiKey="${{ secrets.NUCLIADBCHARTS_APIKEY }}" \ | |
| NucliaDbVerse__KnowledgeBoxId="${{ secrets.NUCLIADBVERSE_KNOWLEDGEBOXID }}" \ | |
| NucliaDbVerse__ApiKey="${{ secrets.NUCLIADBVERSE_APIKEY }}" | |
| - name: Deploy to Azure Web App | |
| uses: azure/webapps-deploy@v2 | |
| with: | |
| app-name: ${{ env.AZURE_WEBAPP_NAME }} | |
| package: ./publish |