File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -74,17 +74,10 @@ jobs:
74
74
75
75
ls -R "${RUNNER_ARTIFACT_DIR}"/*/*.html
76
76
77
- # Enable preview later. Previews are available publicly
78
- #
79
- # upload-preview:
80
- # if: github.repository == 'pytorch/executorch' && github.event_name == 'push' &&
81
- # (github.ref_type == 'branch' && github.ref_name == 'main')
82
- # uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
83
-
84
77
upload-gh-pages :
85
78
needs : build
86
79
if : github.repository == 'pytorch/executorch' && github.event_name == 'push' &&
87
- (( github.ref_type == 'branch' && github.ref_name == 'main ') || github.ref_type == 'tag' )
80
+ (github.ref == 'refs/heads/main' || startsWith( github.ref, 'refs/heads/release/ ') || startsWith( github.ref, 'refs/tags/v') )
88
81
permissions :
89
82
contents : write
90
83
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
You can’t perform that action at this time.
0 commit comments