From f0e1eec848e2f799852a22a7558303f174836918 Mon Sep 17 00:00:00 2001 From: Charly <89928062+charlyautomatiza@users.noreply.github.com> Date: Fri, 14 Oct 2022 20:27:08 -0300 Subject: [PATCH] chore: allure-report-gh-pages (#21) --- .github/workflows/playwright.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 30a63d9..4f3443a 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -37,3 +37,27 @@ jobs: if: always() # always run even if the previous step fails with: report_paths: 'junit-results/*.xml' + + - name: Get Allure history + uses: actions/checkout@v2 + if: always() + continue-on-error: true + with: + ref: gh-pages + path: gh-pages + + - name: Allure Report action from marketplace + uses: simple-elf/allure-report-action@master + if: always() + with: + allure_results: allure-results + allure_history: allure-history + keep_reports: 20 + + - name: Deploy report to Github Pages + if: always() + uses: peaceiris/actions-gh-pages@v2 + env: + PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: allure-history