Skip to content

CD

CD #7

Workflow file for this run

name: CD
on:
workflow_dispatch:
env:
APP_CREDENTIALS_PATH: '${{ github.workspace }}\Private\Constants.cs'
jobs:
deploy:
name: Deploy
runs-on: self-hosted
defaults:
run:
shell: pwsh
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Update installed .NET workloads
run: |
dotnet workload update
- name: Install the .NET Aspire workload
run: |
dotnet workload install aspire
- 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: |
dotnet run --project AppHost/Republic.AppHost.csproj