We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5c7449 commit 8c61d45Copy full SHA for 8c61d45
.github/workflows/publish_docs.yml
@@ -19,14 +19,15 @@ jobs:
19
src: 'docs'
20
dst: 'generated-pages'
21
- name: 'Upload artifact'
22
+ if: github.ref == 'refs/heads/main'
23
uses: 'actions/upload-pages-artifact@v3'
24
with:
25
path: 'generated-pages'
26
- name: 'Deploy GitHub Pages Preview'
- if: github.ref == 'refs/heads/main'
27
+ if: github.ref != 'refs/heads/main'
28
uses: rossjrw/pr-preview-action@v1
29
- source-dir: ./generated-pages/
30
+ source-dir: './generated-pages/'
31
deploy:
32
if: github.ref == 'refs/heads/main'
33
environment:
0 commit comments