File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ async function main() {
6464 if ( input . serverToken || input . temporaryPublicStorage || input . uploadArtifacts ) {
6565 core . startGroup ( `Uploading` )
6666
67+ // upload artifacts as soon as collected
68+ if ( input . uploadArtifacts ) {
69+ await uploadArtifacts ( resultsPath )
70+ }
71+
6772 if ( input . serverToken || input . temporaryPublicStorage ) {
6873 const uploadParams = [ ]
6974
@@ -75,18 +80,13 @@ async function main() {
7580 '--ignoreDuplicateBuildFailure' // ignore failure on the same commit rerun
7681 )
7782 } else if ( input . temporaryPublicStorage ) {
78- uploadParams . push ( '--target=temporary-public-storage' , '--uploadUrlMap=true' )
83+ uploadParams . push ( '--target=temporary-public-storage' )
7984 }
8085
8186 const uploadStatus = runChildCommand ( 'upload' , uploadParams )
8287 if ( uploadStatus !== 0 ) throw new Error ( `LHCI 'upload' failed to upload to LHCI server.` )
8388 }
8489
85- // upload artifacts as soon as collected
86- if ( input . uploadArtifacts ) {
87- await uploadArtifacts ( resultsPath )
88- }
89-
9090 core . endGroup ( ) // Uploading
9191 }
9292
You can’t perform that action at this time.
0 commit comments