You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-13 22:12:50 +02:00
Improved Android and Electron release process
This commit is contained in:
@@ -17,7 +17,6 @@ async function main() {
|
|||||||
|
|
||||||
console.info(await execCommand('git add -A'));
|
console.info(await execCommand('git add -A'));
|
||||||
console.info(await execCommand('git commit -m "Electron release ' + version + '"'));
|
console.info(await execCommand('git commit -m "Electron release ' + version + '"'));
|
||||||
await handleCommitHook();
|
|
||||||
console.info(await execCommand('git tag ' + tagName));
|
console.info(await execCommand('git tag ' + tagName));
|
||||||
console.info(await execCommand('git push && git push --tags'));
|
console.info(await execCommand('git push && git push --tags'));
|
||||||
|
|
||||||
|
@@ -115,14 +115,4 @@ toolUtils.githubRelease = async function(tagName, isDraft) {
|
|||||||
return responseJson;
|
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;
|
module.exports = toolUtils;
|
Reference in New Issue
Block a user