@@ -36,48 +36,38 @@ jobs:
3636
3737 - name : Run Maven tests
3838 run : mvn clean test
39+ continue-on-error : true
3940
40- - name : Upload Surefire Reports
41+ - name : Upload Surefire Reports (for debugging)
4142 if : failure()
4243 uses : actions/upload-artifact@v4
4344 with :
4445 name : surefire-reports
4546 path : target/surefire-reports
4647
47- - name : Load Allure test report history
48- uses : actions/checkout@v4
49- if : success() || failure ()
48+ - name : Get Allure history
49+ uses : actions/checkout@v2
50+ if : always ()
5051 continue-on-error : true
5152 with :
5253 ref : gh-pages
5354 path : gh-pages
5455
55- - name : Prepare Allure history
56- run : |
57- mkdir -p target/allure-history
58- if [ -d gh-pages/allure-history ]; then
59- cp -r gh-pages/allure-history target/allure-history
60- fi
56+
57+ - name : Allure Report action from marketplace
58+ uses : simple-elf/allure-report-action@master
59+ if : always()
60+ with :
61+ allure_results : allure-results
62+ allure_history : allure-history
6163
6264 - name : Generate Allure Report
6365 run : mvn allure:report
6466
65- - name : Save Allure history
66- run : |
67- mkdir -p target/site/allure-maven-plugin/allure-history
68- if [ -d target/allure-history ] && [ "$(ls -A target/allure-history)" ]; then
69- cp -r target/allure-history/* target/site/allure-maven-plugin/allure-history
70- fi
71-
72- - name : Upload Allure Report Artifact
73- uses : actions/upload-artifact@v4
74- with :
75- name : allure-report
76- path : target/site/allure-maven-plugin
77-
78- - name : Deploy Allure Report to GitHub Pages
79- uses : peaceiris/actions-gh-pages@v3
80- with :
81- github_token : ${{ secrets.EPOLIF_TOKEN }}
82- publish_branch : gh-pages
83- publish_dir : target/site/allure-maven-plugin
67+ - name : Deploy report to Github Pages
68+ if : always()
69+ uses : peaceiris/actions-gh-pages@v2
70+ env :
71+ PERSONAL_TOKEN : ${{ secrets.EPOLIF_TOKEN }}
72+ PUBLISH_BRANCH : gh-pages
73+ PUBLISH_DIR : allure-history
0 commit comments