File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Ruby documentation
2+
3+ on :
4+ push :
5+ branches : ["master"]
6+
7+ # Allows you to run this workflow manually from the Actions tab
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
20+
21+ jobs :
22+ build :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+
28+ - name : Checkout Ruby
29+ uses : actions/checkout@v4
30+ with :
31+ repository : ruby/ruby
32+ path : ruby
33+
34+ - name : Setup Ruby
35+ uses : ruby/setup-ruby@v1
36+ with :
37+ ruby-version : ' 3.3'
38+ bundler-cache : true
39+
40+ - name : Build with RDoc
41+ run : ./rdoc.rb --root ruby --include ruby/doc --title "Ruby Documentation" --main README.md --template rorvswild --output _site
42+
43+ - name : Setup Pages
44+ id : pages
45+ uses : actions/configure-pages@v5
46+
47+ - name : Upload artifact
48+ uses : actions/upload-pages-artifact@v3
49+
50+ deploy :
51+ environment :
52+ name : github-pages
53+ url : ${{ steps.deployment.outputs.page_url }}
54+ runs-on : ubuntu-latest
55+ needs : build
56+ steps :
57+ - name : Deploy to GitHub Pages
58+ id : deployment
59+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments