File tree 3 files changed +19
-1
lines changed
3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' build-uploader ' : patch
3
+ ---
4
+
5
+ Better logging with file information
Original file line number Diff line number Diff line change @@ -35,6 +35,20 @@ export async function run(): Promise<string> {
35
35
: null ;
36
36
const macGameName = macosBuildPath ? extractGameName ( macosBuildPath ) : null ;
37
37
38
+ if ( windowsBuildPath ) {
39
+ core . info ( `Upload Windows build: ${ windowsBuildPath } ` ) ;
40
+ core . info ( `Windows game name: ${ windowsGameName } ` ) ;
41
+ core . info ( `Windows file bytes: ${ windowsStats ? windowsStats . size : 0 } ` ) ;
42
+ core . info ( `Windows chunk total: ${ windowsChunkTotal } ` ) ;
43
+ }
44
+
45
+ if ( macosBuildPath ) {
46
+ core . info ( `Upload macOS build: ${ macosBuildPath } ` ) ;
47
+ core . info ( `macOS game name: ${ macGameName } ` ) ;
48
+ core . info ( `macOS file bytes: ${ macStats ? macStats . size : 0 } ` ) ;
49
+ core . info ( `macOS chunk total: ${ macChunkTotal } ` ) ;
50
+ }
51
+
38
52
const buildId = await createBuild ( {
39
53
apiKey,
40
54
apiBaseUrl,
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ export async function uploadBuild({
22
22
const fileHandle = await fs . open ( filePath ) ;
23
23
const stats = await fileHandle . stat ( ) ;
24
24
const totalChunks = Math . ceil ( stats . size / CHUNK_SIZE ) ;
25
- core . info ( `File size: ${ stats . size } bytes, Total chunks: ${ totalChunks } ` ) ;
26
25
27
26
for ( let i = 0 ; i < totalChunks ; i ++ ) {
28
27
try {
You can’t perform that action at this time.
0 commit comments