mirror of https://github.com/laurent22/joplin.git
Improved Android and Electron release process
parent
5430a747e9
commit
2c04f5c8bc
|
@ -17,7 +17,6 @@ async function main() {
|
|||
|
||||
console.info(await execCommand('git add -A'));
|
||||
console.info(await execCommand('git commit -m "Electron release ' + version + '"'));
|
||||
await handleCommitHook();
|
||||
console.info(await execCommand('git tag ' + tagName));
|
||||
console.info(await execCommand('git push && git push --tags'));
|
||||
|
||||
|
|
|
@ -115,14 +115,4 @@ toolUtils.githubRelease = async function(tagName, isDraft) {
|
|||
return responseJson;
|
||||
}
|
||||
|
||||
toolUtils.handleCommitHook = async function() {
|
||||
const fs = require('fs-extra');
|
||||
const filePath = __dirname + '/commit_hook.txt';
|
||||
if (!(await fs.pathExists(filePath))) return;
|
||||
const content = await fs.readFile(filePath);
|
||||
if (!content) throw new Error('No content in ' + filePath);
|
||||
console.info('Running hook: ' + content);
|
||||
console.info(await toolUtils.execCommand(content));
|
||||
}
|
||||
|
||||
module.exports = toolUtils;
|
Loading…
Reference in New Issue