Skip to content

Commit 2309591

Browse files
Merge pull request #2 from AndressaKarla/github-pages
Adicionando job de deploy-github-pages no arquivo yml de workflow
2 parents 359ba4d + f62c914 commit 2309591

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/workflow-blacklist-academy-api-postman-newman.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,37 @@ jobs:
3838
path: ./reports
3939
# armazena o relatório html por 30 dias
4040
retention-days: 30
41+
42+
deploy-github-pages:
43+
# esse job "deploy-github-pages" somente é executado se o job anterior "postman-api-rest" for executado com sucesso
44+
needs: postman-api-rest
45+
46+
runs-on: ubuntu-latest
47+
48+
permissions:
49+
contents: read
50+
pages: write
51+
id-token: write
52+
53+
environment:
54+
name: github-pages
55+
url: https://andressakarla.github.io/blacklist-academy12.2-api-robot/postman-api-rest-report-htmlextra-newman.html
56+
57+
steps:
58+
- name: Passo 1 - Configurar pages
59+
uses: actions/configure-pages@v2
60+
61+
- name: Passo 2 - Baixar report html armazenado no job anterior "postman-api-rest"
62+
uses: actions/download-artifact@v4
63+
with:
64+
name: postman-api-rest-report-html-newman
65+
path: ./reports
66+
67+
- name: Passo 3 - Armazenar pages
68+
uses: actions/upload-pages-artifact@v1
69+
with:
70+
path: ./reports
71+
72+
- name: Passo 4 - Deploy/Publicar no Github Pages na "url" configurada em "deploy-github-pages > environment"
73+
id: deployment
74+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)