fix: update value in NuGet.config #19
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: Add Local Package Source | |
| run: dotnet nuget add source ${{ github.workspace }}/blazor-progress-rag-demo/packages --name LocalPackages | |
| - name: Add Telerik Package Source | |
| run: dotnet nuget update source "telerik" --source "https://nuget.telerik.com/v3/index.json" --username api-key --password ${{ secrets.TELERIK_API_KEY }} | |
| - name: Build with dotnet | |
| run: dotnet build --configuration Release | |
| - 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 |