Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 27fae4f

Browse files
author
noah
committed
Add status step to the workflow
1 parent 0973591 commit 27fae4f

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/publish-docs.yaml

+27-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ jobs:
1010
steps:
1111
-
1212
uses: actions/checkout@v2
13+
-
14+
name: Start to publish
15+
uses: chrnorm/deployment-status@releases/v1
16+
with:
17+
deployment_id: ${{ github.event.deployment.id }}
18+
description: Start to publish docs.
19+
state: "in_progress"
20+
token: "${{ github.token }}"
1321
-
1422
name: Create requirements.txt
1523
uses: "finnp/create-file-action@master"
@@ -23,4 +31,22 @@ jobs:
2331
env:
2432
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
2533
CUSTOM_DOMAIN: docs.gitploy.io
26-
REQUIREMENTS: requirements.txt
34+
REQUIREMENTS: requirements.txt
35+
-
36+
name: Publish successfully
37+
if: success()
38+
uses: chrnorm/deployment-status@releases/v1
39+
with:
40+
deployment_id: ${{ github.event.deployment.id }}
41+
description: Succeed to publish.
42+
state: "success"
43+
token: "${{ github.token }}"
44+
-
45+
name: Publish failed
46+
if: failure()
47+
uses: chrnorm/deployment-status@releases/v1
48+
with:
49+
deployment_id: ${{ github.event.deployment.id }}
50+
description: Failed to publish.
51+
state: "failure"
52+
token: "${{ github.token }}"

0 commit comments

Comments
 (0)