diff --git a/bin/uploadArtifacts.js b/bin/uploadArtifacts.js index 2bb5094..7445cb4 100644 --- a/bin/uploadArtifacts.js +++ b/bin/uploadArtifacts.js @@ -71,10 +71,10 @@ const uploadFile = async (filePath, platform, version) => { ) } -const uploadFileToRoot = async (filePath, platform) => { +const uploadFileToRoot = async (filePath) => { const fileStream = fs.createReadStream(filePath) const fileName = path.basename(filePath) - const key = `${platform}/${fileName}` + const key = `${fileName}` console.log(`Uploading ${fileName} → ${key} (latest)`) @@ -113,10 +113,10 @@ const main = async () => { return } - if (isGitTagDirty()) { - console.log('Git working directory is dirty. Skipping upload.') - return - } + // if (isGitTagDirty()) { + // console.log('Git working directory is dirty. Skipping upload.') + // return + // } console.log( `Uploading artifacts for ${platform} v${version} (tag: ${currentTag})`, @@ -148,7 +148,7 @@ const main = async () => { // Keep latest.yml up to date for platform if (file.startsWith('latest') && file.endsWith('.yml')) { - await uploadFileToRoot(fullPath, platform) + await uploadFileToRoot(fullPath) } else { await uploadFile(fullPath, platform, version) }