From 5d2f29f250acac5614b36a3df4f7e0a80bd0f19c Mon Sep 17 00:00:00 2001 From: Lamparter Date: Sun, 17 Nov 2024 10:04:26 +0000 Subject: [PATCH] Add credentials check --- .github/workflows/cd.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 6298ff7..6d162dc 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -3,6 +3,9 @@ name: CD on: workflow_dispatch: +env: + APP_CREDENTIALS_PATH: '${{ github.workspace }}\Private\Constants.cs' + jobs: deploy: name: Deploy @@ -22,6 +25,14 @@ jobs: - name: Restore dependencies run: | dotnet restore + + - name: Save Base64 credentials into a file + shell: pwsh + run: | + $bytes = [Convert]::FromBase64String($env:CREDENTIALS) + [IO.File]::WriteAllBytes($env:APP_CREDENTIALS_PATH, $bytes) + env: + CREDENTIALS: '${{ secrets.APICREDENTIALS }}' - name: Run .NET Aspire AppHost run: |