Skip to content

Commit f28853b

Browse files
Initial commit
0 parents  commit f28853b

14 files changed

+5978
-0
lines changed

.github/release-drafter.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
template: |
2+
## What’s Changed
3+
4+
$CHANGES

.github/workflows/release-drafter.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: release-drafter/release-drafter@v5
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.log
2+
node_modules

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
pnpm-lock.yaml

.prettierrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
bracketSpacing: false,
3+
printWidth: 120,
4+
semi: false,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
plugins: [require('prettier-plugin-pkg'), require('prettier-plugin-organize-imports')],
8+
}

.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"npm.packageManager": "pnpm",
3+
"typescript.enablePromptUseWorkspaceTsdk": true,
4+
"typescript.tsdk": "node_modules/typescript/lib",
5+
"prettier.prettierPath": "node_modules/prettier/index.js"
6+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Depot Ventures LLC <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# `setup-depot` GitHub Action
2+
3+
Provides the [Depot CLI](https://github.com/depot/cli) in the GitHub Actions environment, allowing access to the `depot` binary in subsequent workflow steps.
4+
5+
## Usage
6+
7+
Download and install the latest version of the CLI:
8+
9+
```yaml
10+
jobs:
11+
job-name:
12+
steps:
13+
- uses: depot/setup-depot@v1
14+
- run: depot ...
15+
```
16+
17+
Download and install a specific version of the CLI:
18+
19+
```yaml
20+
jobs:
21+
job-name:
22+
steps:
23+
- uses: depot/setup-depot@v1
24+
with:
25+
version: 1.2.3
26+
- run: depot ...
27+
```
28+
29+
## Inputs
30+
31+
- `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`).
32+
33+
## Authentication
34+
35+
The `depot` CLI can read a Depot API token from the `DEPOT_TOKEN` environment variable:
36+
37+
```yaml
38+
jobs:
39+
job-name:
40+
steps:
41+
- uses: depot/setup-depot@v1
42+
- run: depot build ...
43+
env:
44+
DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
45+
```
46+
47+
## License
48+
49+
MIT License, see `LICENSE`.

action.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Set up depot CLI
2+
description: Installs the Depot CLI into the GitHub Actions environment
3+
author: Depot
4+
branding:
5+
icon: package
6+
color: gray-dark
7+
runs:
8+
using: node16
9+
main: dist/index.js
10+
inputs:
11+
version:
12+
description: |-
13+
Version of the Depot CLI to install. If unspecified or set to "latest",
14+
the latest version for the target platform will be installed. Example: "0.0.2".
15+
default: latest
16+
required: false

0 commit comments

Comments
 (0)