@@ -59,46 +59,22 @@ jobs:
5959 - name : Run Playwright Tests
6060 run : mvn verify
6161
62- # Step 7: Upload the 'target' directory as an artifact
63- - name : Upload 'target' directory
64- if : always() # Ensure this step runs even if tests fail
65- uses : actions/upload-artifact@v3
62+ # Step 7: Upload Allure Report directory as artifact
63+ - name : Upload Allure Report directory
64+ uses : actions/upload-artifact@v4
6665 with :
67- name : target-directory
68- path : target
69-
70- # # Step 7: Archive ZIP files in the root directory
71- # - name: Archive ZIP files
72- # if: always() # Ensure this step runs even if previous steps fail
73- # uses: actions/upload-artifact@v4
74- # with:
75- # name: zip-archives
76- # path: 'target/*.zip'
77- #
78- # # Step 8: Deploy Allure report to GitHub Pages
79- # - name: Deploy Allure Report to GitHub Pages
80- # if: always() # Ensure this step runs even if tests fail
81- # uses: peaceiris/actions-gh-pages@v3
82- # with:
83- # github_token: ${{ secrets.GITHUB_TOKEN }}
84- # publish_dir: target/site/allure-maven-plugin
66+ name : allure-report
67+ path : target/site/allure-maven-plugin/
8568
8669 reporting :
8770 runs-on : ubuntu-latest
8871 needs : test
8972 steps :
90- # Step 1: Download the 'target' directory
91- - name : Download 'target' directory
92- uses : actions/download-artifact@v3
93- with :
94- name : target-directory
95-
96- # Step 2: Archive ZIP files in the root directory
97- - name : Archive ZIP files
98- uses : actions/upload-artifact@v4
73+ # Step 1: Download Allure Report directory artifact
74+ - name : Download Allure Report directory
75+ uses : actions/download-artifact@v4
9976 with :
100- name : zip-archives
101- path : ' target/*.zip'
77+ name : allure-report
10278
10379 # Step 3: Deploy Allure report to GitHub Pages
10480 - name : Deploy Allure Report to GitHub Pages
0 commit comments