Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,21 +197,29 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Download artifacts
- name: Fetch gh-pages branch
run: |
git fetch origin gh-pages:gh-pages
mkdir gh-pages
git --work-tree=gh-pages checkout gh-pages -- .

- name: Download Playwright artifacts
uses: actions/download-artifact@v3
with:
name: playwright-artifacts
path: playwright-artifacts

- name: Setup Pages
uses: actions/configure-pages@v3
- name: Copy new report
run: |
mkdir -p gh-pages/${{ github.event.pull_request.number }}
cp -r playwright-artifacts/playwright-report/* gh-pages/${{ github.event.pull_request.number }}/

- name: Deploy report to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./playwright-artifacts/playwright-report
destination_dir: ${{ github.event.pull_request.number }}
publish_dir: gh-pages
destination_dir: .
force_orphan: true

- name: Update PR description
Expand Down
Loading