Skip to content

Commit

Permalink
Update GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Nov 27, 2023
1 parent aa7afcb commit ba4c385
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main
- 'feature/*'
pull_request:
branches:
- main

# https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
permissions:
Expand Down Expand Up @@ -87,12 +90,12 @@ jobs:
$openAI = @{ Endpoint = $endpoint; ApiKey = $apiKey; DeploymentId = $deploymentId; }
# Copy-Item -Path ./AspireYouTubeSummariser.AppHost/appsettings.Development.sample.json `
# -Destination ./AspireYouTubeSummariser.AppHost/appsettings.Development.json -Force
Copy-Item -Path ./AspireYouTubeSummariser.AppHost/appsettings.Development.sample.json `
-Destination ./AspireYouTubeSummariser.AppHost/appsettings.Development.json -Force
$appsettings = Get-Content -Path ./AspireYouTubeSummariser.AppHost/appsettings.json | ConvertFrom-Json
$appsettings = Get-Content -Path ./AspireYouTubeSummariser.AppHost/appsettings.Development.json | ConvertFrom-Json
$appsettings.OpenAI = $openAI
$appsettings | ConvertTo-Json -Depth 100 | Out-File -Path ./AspireYouTubeSummariser.AppHost/appsettings.json -Force
$appsettings | ConvertTo-Json -Depth 100 | Out-File -Path ./AspireYouTubeSummariser.AppHost/appsettings.Development.json -Force
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ This provides sample Aspire-orchestrated apps that summarise a YouTube video tra
azd deploy
```

1. Push code changes to the GitHub repository to trigger a GitHub Actions workflow.

## Resources

- [.NET Aspire overview](https://learn.microsoft.com/dotnet/aspire/get-started/aspire-overview?WT.mc_id=dotnet-107070-juyoo)
Expand Down

0 comments on commit ba4c385

Please sign in to comment.