File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Preview
2
+ on :
3
+ workflow_dispatch :
4
+ pull_request :
5
+ types : [opened, synchronize, reopened]
6
+
7
+ permissions :
8
+ checks : write
9
+ contents : write
10
+ deployments : write
11
+ issues : write
12
+ discussions : write
13
+ pages : write
14
+ pull-requests : write
15
+ statuses : write
16
+
17
+ jobs :
18
+ preview :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - name : Check out repository
22
+ uses : actions/checkout@v4
23
+
24
+ - name : Set up Quarto
25
+ uses : quarto-dev/quarto-actions/setup@v2
26
+
27
+ - name : Setup Python
28
+ uses : actions/setup-python@v5
29
+ with :
30
+ python-version : ' 3.11'
31
+
32
+ - name : Install dependencies
33
+ run : |
34
+ python3 -m pip install jupyter quartodoc
35
+ python3 -m pip install -e . --no-deps
36
+
37
+ - name : Build autodoc
38
+ run : quartodoc build
39
+
40
+ - name : Quarto render
41
+ run : quarto render
42
+
43
+ - name : Netlify Publish
44
+
45
+ with :
46
+ publish-dir : ' ./_site'
47
+ enable-pull-request-comment : true
48
+ enable-github-deployment : true
49
+ github-token : ${{ secrets.GITHUB_TOKEN }}
50
+ deploy-message : " Deployed On Netlify"
51
+ github-deployment-environment : ' preview'
52
+ github-deployment-description : ' Preview Deployment'
53
+ env :
54
+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
55
+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
You can’t perform that action at this time.
0 commit comments