GitHub Action to create GitHub Deployment, see https://developer.github.com/v3/repos/deployments
string
Required. GitHub token
"queued" | "pending" | "in_progress" | "error" | "failure" | "success"
Required. Status of deploy
string
A short description of the status. The maximum description length is 140 characters
string
, default: live
Name for the target deployment environment. For example, "production", "release", or "qa"'
string
Sets the URL for accessing your environment
name: Delivery
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
steps:
- uses: actions/checkout@v4
- run: # your delivery scripts
- name: Success
if: success()
uses: zattoo/deploy-status@v1
with:
token: ${{ github.token }}
environment: live
environment_url: https://example.com
state: success
- name: Failure
if: failure()
uses: zattoo/deploy-status@v1
with:
token: ${{ github.token }}
environment: live
state: failure