build(): test new build sys, add script
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Aleksander Wilczyński 2025-04-27 15:24:18 +02:00
parent b41a0a9127
commit 4b6f41a6c7
Signed by: alekswilc
GPG Key ID: D4464A248E5F27FE
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,4 @@
{
"tag": "1.0.0",
"commit": "test"
}

View File

@ -0,0 +1,24 @@
/*
* Copyright (C) 2025 Aleksander <alekswilc> Wilczyński (aleks@alekswilc.dev)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* See LICENSE for more.
*/
import fs from 'node:fs/promises';
(async () => {
await fs.writeFile('git.json', JSON.stringify({
tag: process.env.TAG,
commit: process.env.COMMIT,
}))
})();