Skip to content

Commit 7a049e1

Browse files
committed
chore: move artifacts needed in release to separate folder
1 parent b8f6910 commit 7a049e1

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
node scripts/build.js
1919
- uses: ncipollo/release-action@v1
2020
with:
21-
artifacts: "build/*"
21+
artifacts: "build/raw/*"
2222
tag: v1.0.${{ github.run_id }}
23-
23+

scripts/build.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const path = require('path');
44
const scriptDir = __dirname;
55
const mapsFolder = path.join(scriptDir, '..', "maps");
66
const buildFolder = path.join(scriptDir, '..', "build");
7+
const buildRawFolder = path.join(buildFolder, "raw");
78
const atlas = {}
89
const files = fs.readdirSync(mapsFolder)
910
files.forEach((file) => {
@@ -19,6 +20,6 @@ files.forEach((file) => {
1920
})
2021
atlas[fontName] = fontMap;
2122
});
22-
const jsBuildPath = path.join(buildFolder, 'unicode-conversion-maps.mjs');
23-
fs.mkdirSync(buildFolder, { recursive: true })
23+
const jsBuildPath = path.join(buildRawFolder, 'unicode-conversion-maps.mjs');
24+
fs.mkdirSync(buildRawFolder, { recursive: true })
2425
fs.writeFileSync(jsBuildPath, `export default ${JSON.stringify(atlas, null, 0)};`)

0 commit comments

Comments
 (0)