aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/github-pages.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/github-pages.yml')
-rw-r--r--.github/workflows/github-pages.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml
new file mode 100644
index 00000000..f1e5bf18
--- /dev/null
+++ b/.github/workflows/github-pages.yml
@@ -0,0 +1,37 @@
+name: GitHub Pages
+
+on:
+ push:
+ branches:
+ - master
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ruby
+ bundler-cache: true
+ - run: bundle install
+ - run: rake rdoc
+ - name: Upload GitHub Pages artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: html
+
+ deploy:
+ needs: build
+ permissions:
+ pages: write
+ id-token: write
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4