Skip to content

Commit 46f34b5

Browse files
authored
Add static remote href (#44)
1 parent 211220f commit 46f34b5

98 files changed

Lines changed: 1288 additions & 553 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ on:
1010
permissions:
1111
pull-requests: write
1212
checks: write
13-
contents: read
13+
contents: write
14+
15+
concurrency:
16+
group: pages-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || 'main' }}
17+
cancel-in-progress: true
1418

1519
jobs:
1620
test:
@@ -21,6 +25,15 @@ jobs:
2125
steps:
2226
- uses: actions/checkout@v6
2327

28+
- name: Compute publish subpath
29+
id: path
30+
run: |
31+
if [ "${{ github.event_name }}" = "pull_request" ]; then
32+
echo "subdir=pr-${{ github.event.number }}" >> "$GITHUB_OUTPUT"
33+
else
34+
echo "subdir=" >> "$GITHUB_OUTPUT"
35+
fi
36+
2437
- name: Enable Corepack
2538
run: corepack enable
2639

@@ -46,4 +59,15 @@ jobs:
4659
uses: ./
4760
with:
4861
report-directory: "./out/allure-report"
62+
remote-href: "https://allure-framework.github.io/allure-action/${{ steps.path.outputs.subdir }}"
4963
github-token: ${{ secrets.GITHUB_TOKEN }}
64+
65+
- name: Deploy to GitHub Pages
66+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
67+
uses: peaceiris/actions-gh-pages@v4
68+
with:
69+
github_token: ${{ secrets.GITHUB_TOKEN }}
70+
publish_dir: ./out/allure-report
71+
publish_branch: gh-pages
72+
destination_dir: ${{ steps.path.outputs.subdir }}
73+
keep_files: true

.yarn/cache/@allurereport-aql-npm-3.3.1-85359f0fb0-b9bef4f91f.zip renamed to .yarn/cache/@allurereport-aql-npm-3.4.1-f8cd09c4b2-a6aa23e5bc.zip

36.5 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

.yarn/cache/@allurereport-ci-npm-3.3.1-f3fa72b81f-370caf8073.zip renamed to .yarn/cache/@allurereport-ci-npm-3.4.1-8e50a806b9-45b24be39a.zip

13.2 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-38.4 KB
Binary file not shown.
Binary file not shown.

.yarn/cache/@allurereport-directory-watcher-npm-3.3.1-d1e02bca94-df667ca57b.zip renamed to .yarn/cache/@allurereport-directory-watcher-npm-3.4.1-d5524936d0-144e8f2e1c.zip

5.99 KB
Binary file not shown.

0 commit comments

Comments
 (0)