Skip to content

Commit

Permalink
Merge pull request #2 from AndressaKarla/github-pages
Browse files Browse the repository at this point in the history
Adicionando job de deploy-github-pages no arquivo yml de workflow
  • Loading branch information
AndressaKarla authored Nov 19, 2024
2 parents 359ba4d + f62c914 commit 2309591
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,37 @@ jobs:
path: ./reports
# 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-robot/postman-api-rest-report-htmlextra-newman.html

steps:
- name: Passo 1 - Configurar pages
uses: actions/configure-pages@v2

- name: Passo 2 - Baixar report html armazenado no job anterior "postman-api-rest"
uses: actions/download-artifact@v4
with:
name: postman-api-rest-report-html-newman
path: ./reports

- name: Passo 3 - Armazenar pages
uses: actions/upload-pages-artifact@v1
with:
path: ./reports

- name: Passo 4 - Deploy/Publicar no Github Pages na "url" configurada em "deploy-github-pages > environment"
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 2309591

Please sign in to comment.