Explorar el Código

CI fix

master
Palash Bansal hace 2 años
padre
commit
d033b33a7e
No account linked to committer's email address
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1
    1
      .github/workflows/deploy-pages.yml
  2. 1
    1
      scripts/utils.mjs

+ 1
- 1
.github/workflows/deploy-pages.yml Ver fichero

@@ -47,7 +47,7 @@ jobs:
- run: mkdir _site
- run: mv -t _site docs dist examples README.md LICENSE index.html
- run: mkdir -p _site/plugins
- run: find plugins -maxdepth 2 -type d \( -name dist -o -name docs \) -exec sh -c "mkdir -p _site/{} && cp -r {}/ _site/{}/" \;
- run: find plugins -maxdepth 2 -type d \( -name dist -o -name docs \) -exec sh -c "mkdir -p _site/{} && cp -r {} _site/{}/.." \;
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact

+ 1
- 1
scripts/utils.mjs Ver fichero

@@ -11,7 +11,6 @@ export function loopPluginDirs(callback){
const pluginDir = path.join(pluginsDir, pluginFolder)
const packageJsonPath = path.join(pluginDir, 'package.json')
if (!fs.existsSync(packageJsonPath)) continue;
console.log(`NPM install ${pluginFolder}...`)
callback(pluginDir)
}

@@ -19,6 +18,7 @@ export function loopPluginDirs(callback){

export function execEachPlugin(command){
loopPluginDirs((pluginDir) => {
console.log(`Executing ${command} in ${pluginDir}`)
execSync(command, {cwd: pluginDir, stdio: 'inherit'})
})
}

Cargando…
Cancelar
Guardar