Skip to content

Commit 407f313

Browse files
change upload document steps
1 parent cf32397 commit 407f313

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -193,28 +193,8 @@ jobs:
193193
194194
echo "Running post-deployment script..."
195195
196-
# Extract required resource names from the deployment
197-
STORAGE_ACCOUNT=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --resource-type "Microsoft.Storage/storageAccounts" --query "[0].name" -o tsv)
198-
AI_SEARCH=$(az resource list --resource-group ${{ env.RESOURCE_GROUP_NAME }} --resource-type "Microsoft.Search/searchServices" --query "[0].name" -o tsv)
199-
200-
echo "Found Storage Account: $STORAGE_ACCOUNT"
201-
echo "Found AI Search Service: $AI_SEARCH"
202-
echo "Backend URL: ${{ steps.get_backend_url.outputs.MACAE_URL_API }}"
203-
204-
# Run upload team config script with parameters
205-
python infra/scripts/upload_team_config.py \
206-
"${{ steps.get_backend_url.outputs.MACAE_URL_API }}" \
207-
"data/agent_teams" \
208-
"${{ secrets.AZURE_SUBSCRIPTION_ID }}"
209-
210-
# Run process sample data script with parameters
211-
bash infra/scripts/process_sample_data.sh \
212-
"$STORAGE_ACCOUNT" \
213-
"sample-dataset" \
214-
"$AI_SEARCH" \
215-
"sample-dataset-index" \
216-
"${{ env.RESOURCE_GROUP_NAME }}" \
217-
"${{ secrets.AZURE_SUBSCRIPTION_ID }}"
196+
# Run PowerShell script with 'All' use case automatically selected
197+
echo "5" | pwsh -File infra/scripts/Selecting-Team-Config-And-Data.ps1 -ResourceGroup "${{ env.RESOURCE_GROUP_NAME }}"
218198
219199
echo "=== Post-Deployment Script Completed Successfully ==="
220200

0 commit comments

Comments
 (0)