Skip to content

Commit

Permalink
Mime (#119)
Browse files Browse the repository at this point in the history
* try to use bazel node_modules for builds

* Use rootpaths for artifact locating

* Add mime types to release artifacts
  • Loading branch information
Zemnmez authored May 4, 2022
1 parent a63257c commit 7cd3a7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy/artifacts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ts_project(
name = "release_src",
srcs = ["release.ts"],
deps = [
"@npm//mime",
"@npm//@actions/github",
"@npm//@types/node",
],
Expand Down
2 changes: 1 addition & 1 deletion deploy/artifacts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
})
)
);
Expand Down
2 changes: 1 addition & 1 deletion project/ck3/recursive-vassals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit 7cd3a7c

Please sign in to comment.