Skip to content

Commit 8b9c2bf

Browse files
committed
test if workflow works without deployment
1 parent 80d5265 commit 8b9c2bf

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/deploy-branch.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
deploy-branch:
2929
runs-on: ubuntu-latest
3030
container: tarantool/doc-builder:fat-4.3
31+
permissions: write-all
3132
env:
3233
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
3334
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
@@ -55,15 +56,6 @@ jobs:
5556
id: set-deployment-name
5657
run: echo "DEPLOYMENT_NAME=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV
5758

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-
6759
- run: cmake .
6860
id: cmake
6961
- run: make pull-modules
@@ -95,6 +87,15 @@ jobs:
9587
retry_wait_seconds: 15
9688
max_attempts: 3
9789

90+
- name: Start dev server deployment
91+
uses: bobheadxi/deployments@v1
92+
id: deployment
93+
with:
94+
step: start
95+
token: ${{secrets.GITHUB_TOKEN}}
96+
env: "branch-${{env.DEPLOYMENT_NAME}}"
97+
ref: ${{github.head_ref}}
98+
9899
- name: update deployment status
99100
id: finalize-deployment
100101
uses: bobheadxi/deployments@v1

0 commit comments

Comments
 (0)