File tree Expand file tree Collapse file tree 1 file changed +44
-1
lines changed Expand file tree Collapse file tree 1 file changed +44
-1
lines changed Original file line number Diff line number Diff line change 3
3
pull_request :
4
4
push :
5
5
branches :
6
- - main
6
+ - ' * '
7
7
tags :
8
8
- v*
9
9
51
51
name : pdf
52
52
path : _build/latex/*.pdf
53
53
retention-days : 14
54
+
55
+ publish :
56
+ runs-on : ubuntu-latest
57
+ name : Publish to GitHub pages
58
+ needs : build-html-man-pdf
59
+ environment : github-pages
60
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
61
+ permissions :
62
+ pages : write
63
+ id-token : write
64
+ steps :
65
+
66
+ - uses : actions/checkout@v2
67
+
68
+ - name : Prepare site (pre-rendered)
69
+ run : |
70
+ git clone --depth 1 https://github.com/syncthing/docs-pre-rendered.git _site
71
+ rm -rf _site/.git
72
+ go run _script/lsver.go _site > _site/versions.json
73
+
74
+ - name : Prepare site (html)
75
+ uses : actions/download-artifact@v2
76
+ with :
77
+ name : html
78
+ path : _site
79
+
80
+ - name : Prepare site (man)
81
+ uses : actions/download-artifact@v2
82
+ with :
83
+ name : man
84
+ path : _site/man
85
+
86
+ - name : Prepare site (pdf)
87
+ uses : actions/download-artifact@v2
88
+ with :
89
+ name : man
90
+ path : _site/man
91
+
92
+ - name : Upload Pages artifact
93
+ uses : actions/upload-pages-artifact@v2
94
+
95
+ - name : Deploy to GitHub Pages
96
+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments