Skip to content

Commit 0afb86c

Browse files
initial commit
Signed-off-by: Henry Gressmann <[email protected]>
0 parents  commit 0afb86c

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Setup Nots.dev CLI
2+
3+
Download, install and setup the Nots.dev CLI.
4+
5+
## Usage
6+
7+
```yaml
8+
- uses: nots-dev/action@v1
9+
with:
10+
deploy-token: ${{ secrets.NOTS_TOKEN }}
11+
server: https://nots.dev
12+
version: latest
13+
```
14+
15+
## Inputs
16+
17+
| Name | Description | Required | Default |
18+
| -------------- | ---------------------------------------------- | -------- | ----------- |
19+
| `deploy-token` | The deploy token for your Nots project or app. | `false` | `undefined` |
20+
| `server` | The Nots.dev server to connect to | `false` | `undefined` |
21+
| `version` | The version of the Nots.dev CLI to use. | `false` | `latest` |
22+
23+
## Outputs
24+
25+
| Name | Description | Example |
26+
| -------------- | --------------------------------------------------- | ------------------- |
27+
| `nots-version` | The version of the Nots.dev CLI that was installed. | `0.0.1` |
28+
| `nots-path` | The path to the Nots.dev CLI that was installed. | `~/.local/bin/nots` |

action.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Setup Nots.dev
2+
description: Download, install, and setup the Nots.dev CLI.
3+
author: explodingcamera
4+
branding:
5+
icon: play-circle
6+
color: white
7+
inputs:
8+
version:
9+
description: 'The version of Nots to install. (e.g. latest, "0.1.5")'
10+
required: false
11+
deploy-token:
12+
required: false
13+
description: "Optional deploy token for authenticating against remote nots.dev server."
14+
server:
15+
required: false
16+
description: "Server to connect to"
17+
outputs:
18+
nots-version:
19+
description: The version of Bun that was installed.
20+
nots-path:
21+
description: The path to the Nots CLI.
22+
runs:
23+
using: "composite"
24+
steps:
25+
- name: Download Nots
26+
shell: bash
27+
run: |
28+
curl -fsSLO https://raw.githubusercontent.com/nots-dev/www/main/docs/install.sh
29+
chmod +x install.sh
30+
./install.sh
31+
rm install.sh
32+
version=$(nots --version | cut -d' ' -f2)
33+
echo "${HOME}/.local/bin" >> $GITHUB_PATH
34+
echo "nots-version=${version}" >> $GITHUB_OUTPUT
35+
echo "nots-path=${HOME}/.local/bin/nots" >> $GITHUB_OUTPUT
36+
# - name: Login to Nots
37+
# if: ${{ inputs.deploy-token }}
38+
# shell: bash
39+
# run: |
40+
# nots login --token ${{ inputs.deploy-token }} --server ${{ inputs.server }}

0 commit comments

Comments
 (0)