fix an error where build step artifacts were going into a subdirectory

e9e2864ba02d4d78e7255d36938c14f30390950c

Tucker McKnight <tmcknight@instructure.com> | Tue Dec 02 2025

fix an error where build step artifacts were going into a subdirectory
main.ts:84
Before
83
84
85
86
87
88
              // Run the command for each step in each branch
              await exec(`(cd ${tempDirRepoPath} && ${artifactStep.command})`)
              // Copy the specified folders from the "from" to the "to" dir
              await exec(`cp -r --remove-destination ${tempDirRepoPath}/${artifactStep.copyFrom} ${directories.output}${eleventyConfig.getFilter("slugify")(repoName)}/branches/${eleventyConfig.getFilter("slugify")(branch)}/${artifactStep.copyTo}`)
            }
          }
          // delete the temp dirs
After
83
84
85
86
87
88
              // Run the command for each step in each branch
              await exec(`(cd ${tempDirRepoPath} && ${artifactStep.command})`)
              // Copy the specified folders from the "from" to the "to" dir
              await exec(`cp -r ${tempDirRepoPath}/${artifactStep.copyFrom} ${directories.output}${eleventyConfig.getFilter("slugify")(repoName)}/branches/${eleventyConfig.getFilter("slugify")(branch)}/${artifactStep.copyTo}`)
            }
          }
          // delete the temp dirs