From 030be40438cbc2315b7693d1e8048af0a36a709a Mon Sep 17 00:00:00 2001 From: Maple Ong Date: Mon, 28 Mar 2022 16:51:54 -0400 Subject: [PATCH] Generate and deploy rdoc on GH pages using GH workflow --- .github/workflows/gh-pages.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000..887cd49b --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,25 @@ +name: Github Pages (rdoc) +on: [push] +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@master + + - name: Set up Ruby 💎 + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: '3.1' + + - name: Install rdoc and generate docs 🔧 + run: | + gem install rdoc + rdoc --op rdocs + + - name: Deploy 🚀 + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./rdocs