File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy RDoc site to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ workflow_dispatch :
7
+
8
+ permissions :
9
+ contents : read
10
+ pages : write
11
+ id-token : write
12
+
13
+ # Allow one concurrent deployment
14
+ concurrency :
15
+ group : " pages"
16
+ cancel-in-progress : true
17
+
18
+ jobs :
19
+ build :
20
+ runs-on : ubuntu-latest
21
+ env :
22
+ HUGO_VERSION : 0.102.3
23
+ steps :
24
+ - uses : actions/checkout@v3
25
+ - uses : ruby/setup-ruby@v1
26
+ with :
27
+ ruby-version : ' 3.1'
28
+ bundler-cache : true
29
+ - name : Setup Pages
30
+ id : pages
31
+ uses : actions/configure-pages@v2
32
+ - name : Build HTML by RDoc
33
+ run : rake rdoc
34
+ - name : Upload artifact
35
+ uses : actions/upload-pages-artifact@v1
36
+ with :
37
+ path : ./html
38
+
39
+ deploy :
40
+ environment :
41
+ name : github-pages
42
+ url : ${{ steps.deployment.outputs.page_url }}
43
+ runs-on : ubuntu-latest
44
+ needs : build
45
+ steps :
46
+ - name : Deploy to GitHub Pages
47
+ id : deployment
48
+ uses : actions/deploy-pages@v1
49
+
You can’t perform that action at this time.
0 commit comments