Skip to content

Commit 40696dd

Browse files
committed
Using the script to determine which backend server to use for PR deploys
1 parent c3edf9b commit 40696dd

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/deploy-test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ jobs:
2424
ref: ${{ github.event.pull_request.head.ref }}
2525
repository: ${{ github.event.pull_request.head.repo.full_name }}
2626

27-
- name: get Node.js
27+
- name: get node.js
2828
uses: actions/setup-node@v4
2929
with:
3030
node-version: 20
3131

3232
- name: download dependencies
3333
run: npm ci
3434

35+
- name: determine the correct test server
36+
id: vite-url
37+
run: echo "VITE_TEST_SERVER_URL=`./.github/get-release-server.sh ${{ github.base_ref }}`" >> GITHUB_ENV
38+
3539
- name: build app
3640
env:
37-
PUBLIC_URL: /${{ steps.build-path.outputs.build }}
41+
VITE_TEST_SERVER_URL: ${{ steps.vite-url.outputs.VITE_TEST_SERVER_URL }}
3842
NODE_ENV: development
39-
VITE_TEST_SERVER_URL: "https://develop.opencast.org"
4043
VITE_TEST_SERVER_AUTH: "admin:opencast"
4144
run: npm run build
4245

0 commit comments

Comments
 (0)