Skip to content

Commit b37037e

Browse files
authored
Merge pull request #764 from rhenium/ky/actions-github-pages
Automatically update GitHub Pages from master branch
2 parents b6b71e7 + 0a133bb commit b37037e

File tree

2 files changed

+37
-22
lines changed

2 files changed

+37
-22
lines changed

.github/workflows/github-pages.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: ruby
17+
bundler-cache: true
18+
- run: bundle install
19+
- run: rake rdoc
20+
- name: Upload GitHub Pages artifact
21+
uses: actions/upload-pages-artifact@v3
22+
with:
23+
path: html
24+
25+
deploy:
26+
needs: build
27+
permissions:
28+
pages: write
29+
id-token: write
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v4

tool/update-gh-pages

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

0 commit comments

Comments
 (0)