From 0ec124fa12499996ecb8e714d64c8ec6d8d54571 Mon Sep 17 00:00:00 2001 From: AdrickTench Date: Fri, 16 Aug 2024 15:16:25 -0500 Subject: [PATCH] Publish Allure Report to GitHub Pages --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 581c74677e1..b70a5e2f36a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,3 +140,29 @@ jobs: uses: hmarr/auto-approve-action@v3 with: github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload Allure Report as Pages Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./allure-report + + deploy-allure-report: + runs-on: ubuntu-latest + needs: generate-reports + + permissions: + pages: write # Allow deployment to GitHub Pages + id-token: write + + environment: + # environment created automatically by GitHub + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file