From 7cd3a7c406706ffb4fad6137e82d892884396bf7 Mon Sep 17 00:00:00 2001 From: Thomas Neil James Shadwell Date: Wed, 4 May 2022 14:46:15 -0700 Subject: [PATCH] Mime (#119) * try to use bazel node_modules for builds * Use rootpaths for artifact locating * Add mime types to release artifacts --- deploy/artifacts/BUILD | 1 + deploy/artifacts/release.ts | 2 +- project/ck3/recursive-vassals/README.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/artifacts/BUILD b/deploy/artifacts/BUILD index 54a94388b7..818db07cab 100644 --- a/deploy/artifacts/BUILD +++ b/deploy/artifacts/BUILD @@ -12,6 +12,7 @@ ts_project( name = "release_src", srcs = ["release.ts"], deps = [ + "@npm//mime", "@npm//@actions/github", "@npm//@types/node", ], diff --git a/deploy/artifacts/release.ts b/deploy/artifacts/release.ts index 28b74be664..4101a0ae15 100644 --- a/deploy/artifacts/release.ts +++ b/deploy/artifacts/release.ts @@ -37,7 +37,7 @@ async function main() { repo: context.repo.repo, release_id: (await release).data.id, name, - data: (await fs.readFile(file)).toString(), + data: (await fs.readFile(file)).toString('utf-8'), }) ) ); diff --git a/project/ck3/recursive-vassals/README.md b/project/ck3/recursive-vassals/README.md index 8e382948ce..a2c051bcbd 100644 --- a/project/ck3/recursive-vassals/README.md +++ b/project/ck3/recursive-vassals/README.md @@ -20,6 +20,6 @@ Republican vassals are mostly a PITA. They, like Theocratic vassals, have no par ## Building - The target `:mod_zip` builds a zip file, i.e. run `yarn bazel build //project/ck3/recursive-vassals:mod_zip`. This is probably not going to be very ergonomic for people who don't know how to use bazel. Sorry. + The target `:mod_zip` builds a zip file, i.e. run `yarn bazel build //project/ck3/recursive-vassals:mod_zip`. It is output as a build artifact in each release. You can also get a patch via `:patch`. \ No newline at end of file