Skip to content

Commit c35ce45

Browse files
committed
Restore deployment step in CI
1 parent 353f60c commit c35ce45

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/deploy-branch.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ jobs:
5555
id: set-deployment-name
5656
run: echo "DEPLOYMENT_NAME=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV
5757

58+
- name: Start dev server deployment
59+
uses: bobheadxi/deployments@v1
60+
id: deployment
61+
with:
62+
step: start
63+
token: ${{secrets.GITHUB_TOKEN}}
64+
env: "branch-${{env.DEPLOYMENT_NAME}}"
65+
ref: ${{github.head_ref}}
66+
5867
- run: cmake .
5968
id: cmake
6069
- run: make pull-modules
@@ -78,6 +87,17 @@ jobs:
7887
retry_wait_seconds: 15
7988
max_attempts: 3
8089

90+
- name: update deployment status
91+
id: finalize-deployment
92+
uses: bobheadxi/deployments@v1
93+
with:
94+
step: finish
95+
token: ${{secrets.GITHUB_TOKEN}}
96+
env: "branch-${{env.DEPLOYMENT_NAME}}"
97+
status: ${{job.status}}
98+
deployment_id: ${{steps.deployment.outputs.deployment_id}}
99+
env_url: ${{secrets.TARANTOOL_HOST}}/doc/${{env.DEPLOYMENT_NAME}}/
100+
81101
- name: Send VK Teams message on failures
82102
# bot token won't be accessible in the forks
83103
if: ${{ failure() && env.VKTEAMS_BOT_TOKEN != '' }}

0 commit comments

Comments
 (0)