|
33 | 33 | working-directory: packages/design-system |
34 | 34 | run: npm run build |
35 | 35 |
|
36 | | - - name: Create and populate .env file |
37 | | - env: |
38 | | - DATAVERSE_BACKEND_URL: 'http://localhost:8000' |
39 | | - OIDC_CLIENT_ID: 'test' |
40 | | - OIDC_AUTHORIZATION_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/auth' |
41 | | - OIDC_TOKEN_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/token' |
42 | | - OIDC_LOGOUT_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/logout' |
43 | | - OIDC_STORAGE_KEY_PREFIX: 'DV_' |
44 | | - run: | |
45 | | - touch .env |
46 | | - echo VITE_DATAVERSE_BACKEND_URL="$DATAVERSE_BACKEND_URL" >> .env |
47 | | - echo VITE_OIDC_CLIENT_ID="$OIDC_CLIENT_ID" >> .env |
48 | | - echo VITE_OIDC_AUTHORIZATION_ENDPOINT="$OIDC_AUTHORIZATION_ENDPOINT" >> .env |
49 | | - echo VITE_OIDC_TOKEN_ENDPOINT="$OIDC_TOKEN_ENDPOINT" >> .env |
50 | | - echo VITE_OIDC_LOGOUT_ENDPOINT="$OIDC_LOGOUT_ENDPOINT" >> .env |
51 | | - echo VITE_OIDC_STORAGE_KEY_PREFIX="$OIDC_STORAGE_KEY_PREFIX" >> .env |
52 | | - shell: bash |
53 | | - |
54 | 36 | - name: Create containerized development environment .env file |
55 | 37 | working-directory: dev-env |
56 | 38 | run: cp .env.example .env |
@@ -113,24 +95,6 @@ jobs: |
113 | 95 | sed -i -e 's/<YOUR_GITHUB_AUTH_TOKEN>/${{ secrets.GITHUB_TOKEN }}/g' .npmrc |
114 | 96 | sed -i -e 's/<YOUR_NPM_AUTH_TOKEN>/${{ secrets.NPM_AUTH_TOKEN }}/g' .npmrc |
115 | 97 |
|
116 | | - - name: Create and populate .env file |
117 | | - env: |
118 | | - DATAVERSE_BACKEND_URL: 'http://localhost:8000' |
119 | | - OIDC_CLIENT_ID: 'test' |
120 | | - OIDC_AUTHORIZATION_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/auth' |
121 | | - OIDC_TOKEN_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/token' |
122 | | - OIDC_LOGOUT_ENDPOINT: 'http://localhost:8000/realms/test/protocol/openid-connect/logout' |
123 | | - OIDC_STORAGE_KEY_PREFIX: 'DV_' |
124 | | - run: | |
125 | | - touch .env |
126 | | - echo VITE_DATAVERSE_BACKEND_URL="$DATAVERSE_BACKEND_URL" >> .env |
127 | | - echo VITE_OIDC_CLIENT_ID="$OIDC_CLIENT_ID" >> .env |
128 | | - echo VITE_OIDC_AUTHORIZATION_ENDPOINT="$OIDC_AUTHORIZATION_ENDPOINT" >> .env |
129 | | - echo VITE_OIDC_TOKEN_ENDPOINT="$OIDC_TOKEN_ENDPOINT" >> .env |
130 | | - echo VITE_OIDC_LOGOUT_ENDPOINT="$OIDC_LOGOUT_ENDPOINT" >> .env |
131 | | - echo VITE_OIDC_STORAGE_KEY_PREFIX="$OIDC_STORAGE_KEY_PREFIX" >> .env |
132 | | - shell: bash |
133 | | - |
134 | 98 | - name: Install Dependencies |
135 | 99 | run: npm install |
136 | 100 |
|
|
0 commit comments