52 lines
1.7 KiB
YAML
52 lines
1.7 KiB
YAML
# If `target` is set to `production`, this action handles updating the
|
|
# target commit env variable (`RELEASE_COMMIT`) which is used as the
|
|
# pointer for `rerun.io/docs` and `rerun.io/examples` and triggering
|
|
# a redeploy of `rerun.io`.
|
|
|
|
# If `target` is set to `preview`, then this instead deploys a fresh preview
|
|
# with an override for `release_commit`, and sets the following outputs:
|
|
# - `vercel_preview_deployment_id`
|
|
# - `vercel_preview_url`
|
|
# - `vercel_preview_inspector_url`
|
|
#
|
|
# The `vercel_preview_deployment_id` may be used to wait for the deployment
|
|
# to complete with the `wait-for-deployment` command, which outputs:
|
|
# - `vercel_preview_result`, either "success" or "failure"
|
|
# - `vercel_preview_url`
|
|
# - `vercel_preview_inspector_url`
|
|
|
|
name: "Deploy rerun.io"
|
|
|
|
description: "Vercel utilities"
|
|
|
|
# Changing these inputs also requires changing their usage in `index.mjs`
|
|
inputs:
|
|
vercel_token:
|
|
description: "Vercel access token"
|
|
required: true
|
|
vercel_team_name:
|
|
description: "Vercel team name under which `vercel_project_name` can be found"
|
|
required: true
|
|
vercel_project_name:
|
|
description: "Vercel project name to update and redeploy"
|
|
required: true
|
|
vercel_deployment_id:
|
|
description: "Vercel deployment ID used in `wait-for-deployment`"
|
|
required: false
|
|
command:
|
|
description: "one of: `deploy`, `wait-for-deployment`, `update-env`"
|
|
required: true
|
|
release_commit:
|
|
description: "Release commit to update the deployment to"
|
|
required: false
|
|
release_version:
|
|
description: "Which release version to update the deployment to"
|
|
required: false
|
|
target:
|
|
description: "Which Vercel environment to deploy to"
|
|
required: false
|
|
|
|
runs:
|
|
using: "node20"
|
|
main: "index.mjs"
|