Skip to content

denoland/deployctl

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ef5dfae · Nov 29, 2023

History

94 Commits
Nov 29, 2023
Mar 23, 2021
Nov 29, 2023
Mar 22, 2022
Nov 29, 2023
Jun 15, 2023
Sep 12, 2023
Mar 10, 2021
Jun 15, 2023
Nov 29, 2023
Sep 12, 2023
Nov 11, 2023
Nov 29, 2023
Nov 27, 2023

Repository files navigation

deployctl

deployctl is the command line tool for Deno Deploy. This repository also contains the denoland/deployctl GitHub Action.

Install

deno install -Arf https://deno.land/x/deploy/deployctl.ts

Usage

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

Action Example

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.