Skip to content

Commit

Permalink
Add credentials check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamparter authored Nov 17, 2024
1 parent c92ede1 commit 5d2f29f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: CD
on:
workflow_dispatch:

env:
APP_CREDENTIALS_PATH: '${{ github.workspace }}\Private\Constants.cs'

jobs:
deploy:
name: Deploy
Expand All @@ -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: |
Expand Down

0 comments on commit 5d2f29f

Please sign in to comment.