Skip to content

Commit bf2651e

Browse files
Deploy to GitHub Pages on fork
1 parent 10b2276 commit bf2651e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ jobs:
7676
name: docs-${{ github.sha }}
7777
path: 'doc'
7878

79-
gh_pages:
80-
# Only deploy on a push to main or on workflow dispatch
81-
if: (github.ref_name == 'main' && github.event_name == 'push') || github.event_name == 'workflow_dispatch'
82-
name: Deploy to GitHub Pages
79+
deploy_fork:
80+
name: Deploy to GitHub Pages on fork
81+
if: >-
82+
(github.event_name == 'push' ||
83+
github.event_name == 'workflow_dispatch') &&
84+
github.repository != 'apache/arrow-erlang'
8385
needs: build
8486

8587
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages

0 commit comments

Comments
 (0)