File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 50
50
- name : Install dependencies
51
51
run : npm ci --legacy-peer-deps
52
52
- name : Build
53
- run : PUBLIC_URL=${{ matrix.public_url }} VITE_DATA_FOLDER=${{ matrix.data_folder }} ./build.sh
53
+ run : PUBLIC_URL=${{ matrix.public_url }} VITE_DATA_FOLDER=${{ matrix.data_folder }} MODE=staging ./build.sh
54
54
- name : Upload
55
55
uses : actions/upload-artifact@v4
56
56
with :
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ PUBLIC_URL=${PUBLIC_URL:-gallery}
4
4
5
5
VITE_DATA_FOLDER=${VITE_DATA_FOLDER:- data}
6
6
7
+ MODE=${MODE:- production}
8
+
7
9
echo " Making bundle with public_url=/$PUBLIC_URL and data=$VITE_DATA_FOLDER "
8
10
9
- PUBLIC_URL=" $PUBLIC_URL " VITE_DATA_FOLDER=" $VITE_DATA_FOLDER " npm run build -- --base=/${PUBLIC_URL} || exit 1;
11
+ PUBLIC_URL=" $PUBLIC_URL " VITE_DATA_FOLDER=" $VITE_DATA_FOLDER " npm run build -- --base=/${PUBLIC_URL} --mode= ${MODE} || exit 1;
10
12
11
13
zip -r $PUBLIC_URL .zip $PUBLIC_URL /* || exit 1;
12
14
You can’t perform that action at this time.
0 commit comments