Skip to content

Commit

Permalink
#26 tentative?
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Feb 4, 2025
1 parent a55b125 commit c27db6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/dotnet-cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ jobs:
runs-on: windows-latest
environment: AZ-Prod

env:
ApiRootUrl: $API_ROOT_URL

steps:
- uses: actions/checkout@v4

Expand All @@ -27,8 +24,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: '$ApiRootUrl' };"
set-content "rubberduckvba.client\src\environments\environment.ts" -value "export const environment = { production: true, apiBaseUrl: '$ApiRootUrl' };"
set-content "rubberduckvba.client\src\environments\environment.prod.ts" -value "export const environment = { production: true, apiBaseUrl: '{{ $API_ROOT_URL }}' };"
set-content "rubberduckvba.client\src\environments\environment.ts" -value "export const environment = { production: true, apiBaseUrl: '{{ $API_ROOT_URL }}' };"
- name: dotnet build
run: dotnet build rubberduckvba.Server --configuration Release
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/dotnet-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
runs-on: windows-latest
environment: AZ-Test

env:
ApiRootUrl: $API_ROOT_URL

steps:
- uses: actions/checkout@v4

Expand All @@ -29,9 +26,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: '$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' };"
set-content "rubberduckvba.client\src\environments\environment.test.ts" -value "export const environment = { production: false, apiBaseUrl: '{{ $API_ROOT_URL }}' };"
set-content "rubberduckvba.client\src\environments\environment.prod.ts" -value "export const environment = { production: false, apiBaseUrl: '{{ $API_ROOT_URL }}' };"
set-content "rubberduckvba.client\src\environments\environment.ts" -value "export const environment = { production: false, apiBaseUrl: '{{ $API_ROOT_URL }}' };"
- name: dotnet build
run: dotnet build rubberduckvba.Server --configuration Release
Expand Down

0 comments on commit c27db6c

Please sign in to comment.