We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb156a7 commit 7beb95cCopy full SHA for 7beb95c
.github/workflows/publish_docs.yml
@@ -2,6 +2,8 @@ name: 'Publish Docs Site'
2
3
on:
4
push:
5
+ branches:
6
+ - main
7
workflow_dispatch:
8
9
permissions:
@@ -19,17 +21,10 @@ jobs:
19
21
src: 'docs'
20
22
dst: 'generated-pages'
23
- name: 'Upload artifact'
- if: github.ref == 'refs/heads/main'
24
uses: 'actions/upload-pages-artifact@v3'
25
with:
26
path: 'generated-pages'
- - 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/'
31
deploy:
32
33
environment:
34
name: 'github-pages'
35
url: '${{ steps.deployment.outputs.page_url }}'
0 commit comments