Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

Setup Depot

v1.0.4

Setup Depot

package

Setup Depot

Installs the Depot CLI into the GitHub Actions environment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Depot

uses: depot/[email protected]

Learn more about this action in depot/setup-action

Choose a version

Depot setup-action GitHub Action

Provides the Depot CLI in the GitHub Actions environment, allowing access to the depot binary in subsequent workflow steps.

Usage

Download and install the latest version of the CLI:

jobs:
  job-name:
    steps:
      - uses: depot/setup-action@v1
      - run: depot ...

Download and install a specific version of the CLI:

jobs:
  job-name:
    steps:
      - uses: depot/setup-action@v1
        with:
          version: 1.2.3
      - run: depot ...

Inputs

  • version (optional) - A string representing the version of the Depot CLI to install (e.g. 1.2.3). The default value is latest which will install the latest available version. Can also specify a semver version range selector (e.g. 0.x.x).

Authentication

The depot CLI can read a Depot API token from the DEPOT_TOKEN environment variable:

jobs:
  job-name:
    steps:
      - uses: depot/setup-action@v1
      - run: depot build ...
        env:
          DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}

License

MIT License, see LICENSE.