DenoDDeno
Powered by
SheikS
Denoβ€’2y agoβ€’
2 replies
Sheik

Github Actions file_server with headers

Hello, I have my portfolio deployed in deno deploy (developed in Angular and I use Github Actions for the bundle and deploy), and I was interested in adding the header to my deploy.yml of my github actions
Cache-Control: max-age=336000

locally I can use
deno run -A https://deno.land/std@0.217.0/http/file_server.ts -H "Cache-Control: max-age=336000"

but in a github action I can't use
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "ricardorobles"
entrypoint: "https://deno.land/std@0.217.0/http/file_server.ts -H 'Cache-Control: max-age=2592000'"

Does anyone know how I can add that header?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Websocket client with headers
AudrowAAudrow / help
4y ago
Deno Fresh deployment failing in Github Actions
Captain π—•π—˜π—˜π—™πŸ₯©CCaptain π—•π—˜π—˜π—™πŸ₯© / help
11mo ago
Strange error after lint in github actions
148111481 / help
3y ago
Deploying WASM via Deno Deploy Github Actions
BunburyBBunbury / help
3y ago