WIP: Build & Release
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
module.exports = async ({ github, context, core, jobId }) => {
|
module.exports = async ({ github, context, core, jobId }) => {
|
||||||
const frontendPath = `./${jobId}/frontend/diunaBI/browser/`;
|
const frontendPath = `./${jobId}/frontend/diunaBI/browser/`;
|
||||||
const files = require('fs').readdirSync(frontendPath).filter(file => file.endsWith('.js'));
|
const files = (require('fs').readdirSync(frontendPath).filter(file => file.endsWith('.js')))
|
||||||
|
.map(file => `${frontendPath}${file}`);
|
||||||
if (files.length === 0) {
|
if (files.length === 0) {
|
||||||
core.setFailed("Frontend JS files not found");
|
core.setFailed("Frontend JS files not found");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
files = files.map(file => `${frontendPath}${file}`);
|
|
||||||
|
|
||||||
files.push(`./${jobId}/webapi/appsettings.json`);
|
files.push(`./${jobId}/webapi/appsettings.json`);
|
||||||
files.push(`./${jobId}/webapi/client_secrets.json`);
|
files.push(`./${jobId}/webapi/client_secrets.json`);
|
||||||
|
|||||||
Reference in New Issue
Block a user