Skip to content

Commit 4f801f4

Browse files
MNT skip asv deploy in pr and fork (#153)
1 parent 8b6a1b2 commit 4f801f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/asv.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
path: asv_benchmarks/results
4545

4646
publish-report:
47+
if: github.event_name == 'push' && github.event.repository.fork == false
4748
name: Build HTML report
4849
runs-on: ubuntu-latest
4950
needs: run-benchmarks
@@ -100,7 +101,6 @@ jobs:
100101
run: cp -r asv_benchmarks/results asv_benchmarks/html/results
101102

102103
- name: Deploy history to gh-pages
103-
if: github.event_name == 'push'
104104
uses: peaceiris/actions-gh-pages@v4
105105
with:
106106
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -117,5 +117,4 @@ jobs:
117117

118118
- name: Deploy to GitHub Pages
119119
id: deployment
120-
if: github.event_name == 'push' && github.event.repository.fork == false
121120
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)