From cc5fcf78b300c4f3fb9c0be61cf3689536f74816 Mon Sep 17 00:00:00 2001 From: Andressa Karla Date: Tue, 19 Nov 2024 03:18:22 -0300 Subject: [PATCH] =?UTF-8?q?Juntando=20em=20um=20=C3=BAnico=20job=20p/=20ve?= =?UTF-8?q?rificar=20se=20ao=20simular=20um=20erro=20os=20passos=20das=20p?= =?UTF-8?q?ages=20ainda=20vai=20executar=20no=20github=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...w-blacklist-academy-api-postman-newman.yml | 33 ++++++++----------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/workflow-blacklist-academy-api-postman-newman.yml b/.github/workflows/workflow-blacklist-academy-api-postman-newman.yml index cc0fcdc..8203854 100644 --- a/.github/workflows/workflow-blacklist-academy-api-postman-newman.yml +++ b/.github/workflows/workflow-blacklist-academy-api-postman-newman.yml @@ -14,6 +14,15 @@ jobs: # agente de execução/runner runs-on: ubuntu-latest + permissions: + contents: read + pages: write + id-token: write + + environment: + name: github-pages + url: https://andressakarla.github.io/blacklist-academy12.2-api-postman/postman-api-rest-report-htmlextra-newman.html + steps: - name: Passo 1 - Obter cópia do código-fonte do repositório uses: actions/checkout@v3 @@ -39,41 +48,25 @@ jobs: # armazena o relatório html por 30 dias retention-days: 30 - deploy-github-pages: - # esse job "deploy-github-pages" somente é executado se o job anterior "postman-api-rest" for executado com sucesso - needs: postman-api-rest - - runs-on: ubuntu-latest - - permissions: - contents: read - pages: write - id-token: write - - environment: - name: github-pages - url: https://andressakarla.github.io/blacklist-academy12.2-api-postman/postman-api-rest-report-htmlextra-newman.html - - steps: - - name: Passo 1 - Configurar pages + - name: Passo 6 - Configurar pages if: ${{ always() }} uses: actions/configure-pages@v2 - - name: Passo 2 - Baixar report html armazenado no job anterior "postman-api-rest" + - name: Passo 7 - Baixar report html armazenado no "Passo 5 - Armazenar report html" if: ${{ always() }} uses: actions/download-artifact@v3 with: name: postman-api-rest-report-html-newman path: ./reports - - name: Passo 3 - Armazenar pages + - name: Passo 8 - Armazenar pages if: ${{ always() }} uses: actions/upload-pages-artifact@v1 with: path: ./reports retention-days: 30 - - name: Passo 4 - Deploy/Publicar no Github Pages na "url" configurada em "deploy-github-pages > environment" + - name: Passo 9 - Deploy/Publicar no Github Pages na "url" configurada em "postman-api-rest > environment" if: ${{ always() }} id: deployment uses: actions/deploy-pages@v1