Skip to content

Commit

Permalink
ci: push spec files & traces to separate repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Dec 13, 2023
1 parent aae3221 commit 91e5d16
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,21 @@ jobs:
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Deploy
- name: Deploy PR
uses: peaceiris/actions-gh-pages@v3
if: github.event_name == 'pull_request'
with:
personal_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
external_repository: leather-wallet/playwright-reports
publish_branch: main
publish_dir: ./playwright-report
destination_dir: ${{ steps.extract_branch.outputs.branch }}

- name: Deploy specs.leather.io
uses: peaceiris/actions-gh-pages@v3
# if: steps.extract_branch.outputs.branch == 'dev'
with:
personal_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
external_repository: leather-wallet/specs.leather.io
publish_branch: main
publish_dir: ./playwright-report

0 comments on commit 91e5d16

Please sign in to comment.