From 8b9c2bf44c181430171bd0cd0a2e3a49d87092d6 Mon Sep 17 00:00:00 2001 From: Anna Balaeva Date: Tue, 24 Oct 2023 17:58:41 +0300 Subject: [PATCH] test if workflow works without deployment --- .github/workflows/deploy-branch.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-branch.yml b/.github/workflows/deploy-branch.yml index 20cd2c69ce..be8656ff7f 100644 --- a/.github/workflows/deploy-branch.yml +++ b/.github/workflows/deploy-branch.yml @@ -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}} @@ -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 @@ -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