Skip to content

Commit

Permalink
replace with pwsh
Browse files Browse the repository at this point in the history
  • Loading branch information
nor0x committed Sep 8, 2024
1 parent e8ba33a commit 19d53df
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ jobs:
- name: replace settings values with secrets
shell: pwsh
run: |
sed -i "s/API_ENDPOINT/${{ secrets.API_ENDPOINT }}/g" ./WahlGPT.Common/Settings.cs
# replace OPENAI_API_KEY
sed -i "s/OPENAI_API_KEY/${{ secrets.OPENAI_API_KEY }}/g" ./WahlGPT.Common/Settings.cs
# replace QDRANT_HOST
sed -i "s/QDRANT_HOST/${{ secrets.QDRANT_HOST }}/g" ./WahlGPT.Common/Settings.cs
#replace QDRANT_API_KEY
sed -i "s/QDRANT_API_KEY/${{ secrets.QDRANT_API_KEY }}/g" ./WahlGPT.Common/Settings.cs
#replace BLOB_CONNECTION_STRING
sed -i "s/BLOB_CONNECTION_STRING/${{ secrets.BLOB_CONNECTION_STRING }}/g" ./WahlGPT.Common/Settings.cs
(Get-Content -Path WahlGPT.Common/Settings.cs) -replace 'API_ENDPOINT', '${{ secrets.API_ENDPOINT }}' | Set-Content -Path WahlGPT.Common/Settings.cs
(Get-Content -Path WahlGPT.Common/Settings.cs) -replace 'OPENAI_API_KEY', '${ { secrets.OPENAI_API_KEY }}' | Set-Content -Path WahlGPT.Common/Settings.cs
(Get-Content -Path WahlGPT.Common/Settings.cs) -replace 'QDRANT_HOST', '${{ secrets.QDRANT_HOST }}' | Set-Content -Path WahlGPT.Common/Settings.cs
(Get-Content -Path WahlGPT.Common/Settings.cs) -replace 'QDRANT_API_KEY', '${{ secrets.QDRANT_API_KEY }}' | Set-Content -Path WahlGPT.Common/Settings.cs
(Get-Content -Path WahlGPT.Common/Settings.cs) -replace 'BLOB_CONNECTION_STRING', '${{ secrets.BLOB_CONNECTION_STRING }}' | Set-Content -Path WahlGPT.Common/Settings.cs
# publishes Blazor project to the release-folder
- name: Publish .NET Core Project
Expand Down

0 comments on commit 19d53df

Please sign in to comment.