Skip to content

Commit ca585a9

Browse files
committed
Switch to the official Github pages action
1 parent 0badb66 commit ca585a9

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/playwright-tests.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,23 @@ jobs:
6161
path: 'target/*.zip'
6262

6363
# Step 8: Deploy Allure report to GitHub Pages
64-
- name: Deploy Allure Report to GitHub Pages
65-
if: always() # Ensure this step runs even if tests fail
66-
uses: peaceiris/actions-gh-pages@v3
64+
# - name: Deploy Allure Report to GitHub Pages
65+
# if: always() # Ensure this step runs even if tests fail
66+
# uses: peaceiris/actions-gh-pages@v3
67+
# with:
68+
# github_token: ${{ secrets.GITHUB_TOKEN }}
69+
# publish_dir: target/site/allure-maven-plugin
70+
71+
# Step 8: Upload Test Results (e.g., HTML reports)
72+
- name: Upload Playwright Test Results
73+
run: |
74+
mkdir -p artifacts
75+
cp -r target/site/allure-maven-plugin/* artifacts/
76+
if: success() # Run only if the tests pass
77+
continue-on-error: false
78+
#
79+
- name: Deploy to GitHub Pages
80+
uses: actions/deploy-pages@v1
6781
with:
68-
github_token: ${{ secrets.GITHUB_TOKEN }}
69-
publish_dir: target/site/allure-maven-plugin
82+
# Optionally customize the directory if needed
83+
folder: artifacts # Deploy the artifacts folder to Pages

0 commit comments

Comments
 (0)