You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Deploy to Deno Deploy
1.11.0
deployctl
is the command line tool for Deno Deploy. This repository also
contains the denoland/deployctl
GitHub Action.
deno install -Arf jsr:@deno/deployctl
Before being able to deploy, you need to get a personal access token from the
Deno Deploy access token page.
Store this token in a DENO_DEPLOY_TOKEN
environment variable, or pass it to
deployctl
with the --token
flag.
deployctl deploy --project=hello-world ./examples/hello.ts
View the help:
deployctl -h
name: Deploy
on: push
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # This is required to allow the GitHub Action to authenticate with Deno Deploy.
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: my-project # the name of the project on Deno Deploy
entrypoint: main.ts # the entrypoint to deploy
To learn more about the action, checkout action readme.