Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump tmpl from 1.0.4 to 1.0.5 #54

Open
wants to merge 2 commits into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
616 changes: 308 additions & 308 deletions .github/dist/index.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
# Zeet Deploy Action

use this github action to deploy with Zeet
Use this Github Action to deploy a project on [Zeet](https://zeet.co).

## Example
Note: you probably want to enable Manual Deploys so that Zeet doesn't automatically rebuild your project on every commit:
<details>
<summary>Manual Deploy</summary>

![Enabling Manual Deploy](./img.png)

</details>

```yaml
steps:
- name: Deploy project
uses: zeet-co/zeet-deploy-action@v2
with:
deploy_key: ${{ secrets.ZEET_TOKEN }}
project: zeet-demo/zeet-demo-node
image: nginx:1.20
```

## Params

| Name | Description | Required |
|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------|
| api_url | The Zeet API URL | No |
| deploy_key | Zeet API Key: Create by going to https://zeet.co/account/api, or to [Dashboard](https://zeet.co/dashboard) > Team Settings > API Keys > New API Key. | Yes |
| project_name | The project name | Yes (or use project_id) |
| project_id | The project id | Yes (or use project_name) |
| image | The Docker image to run | No (defaults to building the latest commit) |
| branch | The branch to deploy to | No (defaults to the default branch) |
| wait | Wait for the deploy to finish, while streaming its output | No (default false) |

## Outputs
`link`: the link to the deployment in the Dashboard
20 changes: 0 additions & 20 deletions __tests__/main.test.ts

This file was deleted.

30 changes: 28 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ author: "Zeet"
inputs:
api_url:
description: "Zeet API Url"
default: "https://anchor.zeet.co"
required: false
deploy_key:
description: "Zeet deploy key"
Expand All @@ -23,9 +24,34 @@ inputs:
wait:
description: "Wait till the deploy finishes"
required: false
default: "false"
outputs:
link:
value: ${{ steps.main.outputs.link }}
description: "Link to deployment"
runs:
using: "node12"
main: "dist/index.js"
using: 'composite'
steps:
- uses: actions/checkout@v3
with:
repository: zeet-co/zeet-deploy-action
ref: v2
- uses: zeet-dev/action-zeet@main
with:
token: ${{ inputs.deploy_key }}
api_url: ${{ inputs.api_url }}
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
shell: bash
- id: main
run: node dist/index.js
shell: bash
env:
INPUT_PROJECT: ${{ inputs.project }}
INPUT_PROJECT_ID: ${{ inputs.project_id }}
INPUT_IMAGE: ${{ inputs.image }}
INPUT_BRANCH: ${{ inputs.branch }}
INPUT_WAIT: ${{ inputs.wait }}

17 changes: 0 additions & 17 deletions codegen.yml

This file was deleted.

Loading