发布流程简化

This commit is contained in:
lutinglt
2025-02-12 14:10:25 +08:00
parent b8d0e43074
commit c0d181278f
6 changed files with 28 additions and 14 deletions

16
.github/release.js vendored Normal file
View File

@@ -0,0 +1,16 @@
const fs = require('fs').promises;
const yaml = require('js-yaml');
async function parseYaml() {
try {
const fileContents = await fs.readFile('./theme.yml', 'utf8');
const data = yaml.load(fileContents);
console.log(data.gitea.version);
} catch (e) {
console.error('Error parsing YAML:', e.message);
process.exit(1);
}
}
parseYaml();