Skip to content

Commit 8c61d45

Browse files
committed
Fix "if" tests to get the right behavior.
1 parent e5c7449 commit 8c61d45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish_docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ jobs:
1919
src: 'docs'
2020
dst: 'generated-pages'
2121
- name: 'Upload artifact'
22+
if: github.ref == 'refs/heads/main'
2223
uses: 'actions/upload-pages-artifact@v3'
2324
with:
2425
path: 'generated-pages'
2526
- name: 'Deploy GitHub Pages Preview'
26-
if: github.ref == 'refs/heads/main'
27+
if: github.ref != 'refs/heads/main'
2728
uses: rossjrw/pr-preview-action@v1
2829
with:
29-
source-dir: ./generated-pages/
30+
source-dir: './generated-pages/'
3031
deploy:
3132
if: github.ref == 'refs/heads/main'
3233
environment:

0 commit comments

Comments
 (0)