File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 3131 - name : Build project
3232 run : npm run build
3333
34+ - name : Extract UPLOAD_MODE from .env
35+ run : |
36+ UPLOAD_MODE=$(grep '^[^#]*UPLOAD_MODE' .env | cut -d '=' -f2)
37+ if [ -z "$UPLOAD_MODE" ]; then
38+ echo "Error: UPLOAD_MODE is not set in .env."
39+ exit 1
40+ fi
41+ echo "UPLOAD_MODE=$UPLOAD_MODE" >> $GITHUB_ENV
42+
3443 - name : Set up Environment Variables
3544 if : ${{ env.UPLOAD_MODE == 'MAP_STORAGE' }}
3645 run : |
6978 fi
7079 fi
7180
72- # UPLOAD_MODE only come from the .env file
73- UPLOAD_MODE=$(grep '^[^#]*UPLOAD_MODE' .env | cut -d '=' -f2)
74- if [ -z "$UPLOAD_MODE" ]; then
75- echo "Error: UPLOAD_MODE is not set in .env."
76- exit 1
77- fi
78- echo "UPLOAD_MODE=$UPLOAD_MODE" >> $GITHUB_ENV
79-
8081 - name : Deploy using WA Map Storage
8182 if : ${{ env.UPLOAD_MODE == 'MAP_STORAGE' }}
8283 run : npm run upload-only
You can’t perform that action at this time.
0 commit comments