Skip to content

Commit

Permalink
test if workflow works without deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lastoCHka42 committed Oct 24, 2023
1 parent 80d5265 commit 8b9c2bf
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
deploy-branch:
runs-on: ubuntu-latest
container: tarantool/doc-builder:fat-4.3
permissions: write-all
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
Expand Down Expand Up @@ -55,15 +56,6 @@ jobs:
id: set-deployment-name
run: echo "DEPLOYMENT_NAME=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV

- name: Start dev server deployment
uses: bobheadxi/deployments@v1
id: deployment
with:
step: start
token: ${{secrets.GITHUB_TOKEN}}
env: "branch-${{env.DEPLOYMENT_NAME}}"
ref: ${{github.head_ref}}

- run: cmake .
id: cmake
- run: make pull-modules
Expand Down Expand Up @@ -95,6 +87,15 @@ jobs:
retry_wait_seconds: 15
max_attempts: 3

- name: Start dev server deployment
uses: bobheadxi/deployments@v1
id: deployment
with:
step: start
token: ${{secrets.GITHUB_TOKEN}}
env: "branch-${{env.DEPLOYMENT_NAME}}"
ref: ${{github.head_ref}}

- name: update deployment status
id: finalize-deployment
uses: bobheadxi/deployments@v1
Expand Down

0 comments on commit 8b9c2bf

Please sign in to comment.