Skip to content

Commit 3351df2

Browse files
committed
change deploy step
Signed-off-by: Andreas Bräu <ab@andi95.de>
1 parent d20c2e3 commit 3351df2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/master_deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ jobs:
2727
env:
2828
CI: true
2929

30+
- name: Create .env file
31+
if: github.ref == 'refs/heads/main'
32+
run: |
33+
echo "REACT_APP_API_URL=${{ vars.REACT_APP_API_URL }}" > .env
34+
echo "REACT_APP_VOCTOWEB_API_URL=${{ vars.REACT_APP_VOCTOWEB_API_URL }}" >> .env
35+
3036
- name: Build application
3137
run: npm run build
3238
env:
3339
CI: false
34-
35-
- name: Create .env file
36-
if: github.ref == 'refs/heads/main'
37-
run: |
38-
echo "REACT_APP_API_URL=${{ vars.REACT_APP_API_URL }}" > .env
39-
echo "REACT_APP_VOCTOWEB_API_URL=${{ vars.REACT_APP_VOCTOWEB_API_URL }}" >> .env
4040

4141
- name: Deploy to Server via SCP
4242
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)