Skip to content

Commit

Permalink
ci: path change
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Mar 30, 2024
1 parent 91dff3b commit 9df7d23
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/visual-comparison.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,33 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Unique Folder name
- name: Unique Folder Name
run : mkdir -p ${{ github.sha }} && cp -r playwright-report/* ${{ github.sha }}


- name: Archive directory with SHA
run: tar -czvf visual-assets.tar ${GITHUB_SHA}

- name: Upload artifact with New Folder Structure
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: visual-assets
path: visual-assets.tar
retention-days: 3
if-no-files-found: error

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: visual-assets.tar

- name: GH Pages URL
run: echo "https://spectrocloud.github.io/librarium/${{ github.sha }}/playwright-report/index.html"
run: |
echo "https://spectrocloud.github.io/librarium/${{ github.sha }}/playwright-report/index.html"
echo "https://spectrocloud.github.io/librarium/${{ github.sha }}/index.html"

0 comments on commit 9df7d23

Please sign in to comment.