File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Docs
2
2
on :
3
3
push :
4
- branches : [🦆]
4
+ branches : [🦆, 📝-* ]
5
5
6
6
jobs :
7
7
check :
37
37
run : |
38
38
cp doc/logo-small.svg output
39
39
40
- - name : Deploy
40
+ # If we are on the main branch, deploy it to the website
41
+ - name : Deploy to GitHub Pages
41
42
uses : JamesIves/github-pages-deploy-action@4.1.0
43
+ if : github.ref == 'refs/heads/🦆'
42
44
with :
43
45
branch : gh-pages
44
46
folder : output
45
47
single-commit : true
48
+
49
+
50
+ # Otherwise, put it on the Actions page to allow download
51
+ - name : Archive the generated documentation
52
+ if : github.ref != 'refs/heads/🦆'
53
+ # use tar + compressor for faster upload and smaller artifact size
54
+ run : |
55
+ cd output
56
+ tar -cv doc | xz > r3-api-docs.tar.xz
57
+
58
+ - name : Upload the generated documentation as an artifact
59
+ uses : actions/upload-artifact@v2
60
+ if : github.ref != 'refs/heads/🦆'
61
+ with :
62
+ name : r3-api-docs
63
+ path : output/r3-api-docs.tar.xz
You can’t perform that action at this time.
0 commit comments