Skip to content

Commit 0a1ef38

Browse files
authored
🔀 Merge pull request #135 from nevans/gh-pages-action
📚 Auto-deploy GitHub Pages from an action
2 parents e0b3620 + 8625a64 commit 0a1ef38

File tree

2 files changed

+46
-43
lines changed

2 files changed

+46
-43
lines changed

.github/workflows/pages.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy RDoc site to Pages
2+
3+
on:
4+
push:
5+
branches: [ 'master' ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
- name: Setup Ruby
24+
uses: ruby/setup-ruby@31a7f6d628878b80bc63375a93ae079ec50a1601 # v1.143.0
25+
with:
26+
ruby-version: '3.2'
27+
bundler-cache: true
28+
- name: Setup Pages
29+
id: pages
30+
uses: actions/configure-pages@v3
31+
- name: Build with RDoc
32+
run: bundle exec rake rdoc
33+
- name: Upload artifact
34+
uses: actions/upload-pages-artifact@v1
35+
with: { path: 'doc' }
36+
37+
deploy:
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
runs-on: ubuntu-latest
42+
needs: build
43+
steps:
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v1

rakelib/ghpages.rake

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)