Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/dotnet-cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
runs-on: windows-latest
environment: AZ-Prod

env:
ApiRootUrl: $API_ROOT_URL

steps:
- uses: actions/checkout@v4

Expand All @@ -24,8 +27,8 @@ jobs:

- name: configure production front-end environment
run: |
set-content "rubberduckvba.client\src\environments\environment.prod.ts" -value "export const environment = { production: true, apiBaseUrl: '${{ env.API_ROOT_URL }}' };"
set-content "rubberduckvba.client\src\environments\environment.ts" -value "export const environment = { production: true, apiBaseUrl: '${{ env.API_ROOT_URL }}' };"
set-content "rubberduckvba.client\src\environments\environment.prod.ts" -value "export const environment = { production: true, apiBaseUrl: '$ApiRootUrl' };"
set-content "rubberduckvba.client\src\environments\environment.ts" -value "export const environment = { production: true, apiBaseUrl: '$ApiRootUrl' };"

- name: dotnet build
run: dotnet build rubberduckvba.Server --configuration Release
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/dotnet-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
runs-on: windows-latest
environment: AZ-Test

env:
ApiRootUrl: $API_ROOT_URL

steps:
- uses: actions/checkout@v4

Expand All @@ -26,9 +29,9 @@ jobs:

- name: configure test front-end environment
run: |
set-content "rubberduckvba.client\src\environments\environment.test.ts" -value "export const environment = { production: false, apiBaseUrl: '${{ env.API_ROOT_URL }}' };"
set-content "rubberduckvba.client\src\environments\environment.prod.ts" -value "export const environment = { production: false, apiBaseUrl: '${{ env.API_ROOT_URL }}' };"
set-content "rubberduckvba.client\src\environments\environment.ts" -value "export const environment = { production: false, apiBaseUrl: '${{ env.API_ROOT_URL }}' };"
set-content "rubberduckvba.client\src\environments\environment.test.ts" -value "export const environment = { production: false, apiBaseUrl: '$ApiRootUrl' };"
set-content "rubberduckvba.client\src\environments\environment.prod.ts" -value "export const environment = { production: false, apiBaseUrl: '$ApiRootUrl' };"
set-content "rubberduckvba.client\src\environments\environment.ts" -value "export const environment = { production: false, apiBaseUrl: '$ApiRootUrl' };"

- name: dotnet build
run: dotnet build rubberduckvba.Server --configuration Release
Expand Down