Skip to content

Commit 7beb95c

Browse files
committed
Add missing workflow
1 parent fb156a7 commit 7beb95c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/publish_docs.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: 'Publish Docs Site'
22

33
on:
44
push:
5+
branches:
6+
- main
57
workflow_dispatch:
68

79
permissions:
@@ -19,17 +21,10 @@ jobs:
1921
src: 'docs'
2022
dst: 'generated-pages'
2123
- name: 'Upload artifact'
22-
if: github.ref == 'refs/heads/main'
2324
uses: 'actions/upload-pages-artifact@v3'
2425
with:
2526
path: 'generated-pages'
26-
- name: 'Deploy GitHub Pages Preview'
27-
if: github.ref != 'refs/heads/main'
28-
uses: rossjrw/pr-preview-action@v1
29-
with:
30-
source-dir: './generated-pages/'
3127
deploy:
32-
if: github.ref == 'refs/heads/main'
3328
environment:
3429
name: 'github-pages'
3530
url: '${{ steps.deployment.outputs.page_url }}'

0 commit comments

Comments
 (0)