Skip to content

Commit

Permalink
continue
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Dec 16, 2024
1 parent acce432 commit af6f30f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/tools/github_actions_deno_deploy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Imports
import * as JSONC from "@std/jsonc"
import * as core from "@actions/core"
import { encodeBase64 } from "@std/encoding"

// Parse deno.jsonc and print deno deploy flags
// deno-lint-ignore no-explicit-any
Expand All @@ -10,4 +9,6 @@ core.setOutput("project", config.deploy.project)
core.setOutput("entrypoint", config.deploy.entrypoint)
core.setOutput("include", config.deploy.include.join(","))
core.setOutput("exclude", config.deploy.exclude.join(","))
core.setOutput("import_map", new URL(`data:application/json;base64,${encodeBase64(JSON.stringify(config.imports))}`).href)
core.setOutput("import_map", ".imports_map.json")

await Deno.writeTextFile(".imports_map.json", JSON.stringify({ imports: config.imports }))
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.cache
.vercel
.imports_map.json
coverage
node_modules
www/.pages
3 changes: 1 addition & 2 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
// Deployment tasks
"deploy:setup-github-actions": {
"description": "",
"command": "deno run --allow-env --allow-read --allow-write=/home/runner/work/_temp .github/tools/github_actions_deno_deploy.ts"
"command": "deno run --allow-env --allow-read --allow-write=.imports_map.json,/home/runner/work/_temp .github/tools/github_actions_deno_deploy.ts"
},
"deploy:preview": {
"description": "Deploy website (preview)",
Expand Down Expand Up @@ -145,7 +145,6 @@
"@actions/core": "npm:@actions/core@^1.11.1",
"@astral/astral": "jsr:@astral/astral@~0.5",
"@libs/run": "jsr:@libs/run@^3.0.2",
"@std/encoding": "jsr:@std/encoding@^1.0.5",
"@std/fs": "jsr:@std/fs@^1.0.6",
"@std/yaml": "jsr:@std/yaml@^1.0.5"
},
Expand Down
1 change: 0 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit af6f30f

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on af6f30f Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

failed to load import map: Import map not found

Please sign in to comment.