Skip to content

Commit 9148e0e

Browse files
committed
add environment
1 parent 4a00566 commit 9148e0e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/asv.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
contents: write
5252
pages: write
5353
id-token: write
54+
environment:
55+
name: github-pages
56+
url: ${{ steps.deployment.outputs.page_url }}
5457

5558
steps:
5659
- uses: actions/checkout@v5
@@ -98,12 +101,13 @@ jobs:
98101

99102
- name: Upload artifact for PR preview
100103
if: github.event_name == 'pull_request'
101-
uses: actions/upload-pages-artifact@v4
104+
uses: actions/upload-pages-artifact@v3
102105
with:
103106
path: asv_benchmarks/html
104107

105108
- name: Deploy PR preview
106109
if: github.event_name == 'pull_request'
110+
id: deployment
107111
uses: actions/deploy-pages@v4
108112

109113
- name: Deploy to GitHub Pages (main)

0 commit comments

Comments
 (0)