Change latest.yml upload location

This commit is contained in:
nicwands
2026-05-18 15:29:52 -04:00
parent 740454d87e
commit f3263f3a03

View File

@@ -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)
}