Skip to content

Commit

Permalink
trying again
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhitestratiform committed Jun 13, 2024
1 parent dcb574c commit 598798e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,37 @@ jobs:
path: playwright-report
retention-days: 30

upload-reports:
name: Upload Reports
needs:
- test
runs-on: ubuntu-latest

outputs:
timestamp: ${{ steps.timestampid.outputs.timestamp }}

steps:

# create a unique identifier for sub directories in github pages
- name: Set a Timestamp
id: timestampid
run: echo "timestamp=$(date -utc +%Y%m%d_%H%M%SZ)" >> "$GITHUB_OUTPUT"

- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: yarn install

# we now download the reports uploaded previously to merge them and create one single html report
- name: Download reports from GitHub Actions Artifacts
uses: actions/download-artifact@v3
with:
name: playwright-report # name of the file stored as artifact (as uploaded at the previous job)
path: playwright-report # name of the folder where the download will be saved


- name: Push files to github pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 598798e

Please sign in to comment.