Skip to content

Commit 6249003

Browse files
Refactor deployment scripts to use PowerShell instead of Bash for schema registration and data upload
1 parent 0a6fd8e commit 6249003

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/deploy-v2-windows.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -559,23 +559,21 @@ jobs:
559559
560560
- name: Register schemas
561561
id: register
562-
shell: bash
562+
shell: pwsh
563563
run: |
564-
echo "Registering schemas..."
565-
sleep 40 # Wait for the API to be ready
564+
Write-Host "Registering schemas..."
565+
Start-Sleep -Seconds 40 # Wait for the API to be ready
566566
567-
cd src/ContentProcessorAPI/samples/schemas
568-
chmod +x ./register_schema.sh
569-
./register_schema.sh ${{ env.CONTAINER_API_APPURL }}/schemavault/ schema_info_sh.json
567+
Set-Location src/ContentProcessorAPI/samples/schemas
568+
& .\register_schema.ps1 "${{ env.CONTAINER_API_APPURL }}/schemavault/" "schema_info_sh.json"
570569
571570
- name: Upload sample invoice and claim data
572-
shell: bash
571+
shell: pwsh
573572
run: |
574-
echo "Uploading sample data..."
575-
cd src/ContentProcessorAPI/samples
576-
chmod +x ./upload_files.sh
577-
./upload_files.sh ${{ env.CONTAINER_API_APPURL }}/contentprocessor/submit ./invoices '${{ steps.register.outputs.invoice_schema_id }}'
578-
./upload_files.sh ${{ env.CONTAINER_API_APPURL }}/contentprocessor/submit ./propertyclaims '${{ steps.register.outputs.propertylossdamageclaimform_schema_id }}'
573+
Write-Host "Uploading sample data..."
574+
Set-Location src/ContentProcessorAPI/samples
575+
& .\upload_files.ps1 "${{ env.CONTAINER_API_APPURL }}/contentprocessor/submit" ".\invoices" "${{ steps.register.outputs.invoice_schema_id }}"
576+
& .\upload_files.ps1 "${{ env.CONTAINER_API_APPURL }}/contentprocessor/submit" ".\propertyclaims" "${{ steps.register.outputs.propertylossdamageclaimform_schema_id }}"
579577
580578
581579
- name: Disable Auth in Web App

0 commit comments

Comments
 (0)