Skip to content

GitHub Pages

GitHub Pages #18

Workflow file for this run

name: GitHub Pages
on:
workflow_run:
workflows: [Release]
types: [completed]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "ruby"
bundler-cache: true
- name: Generate HTML documents
run: bundle exec rake rdoc
- name: Set up Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "doc/"
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4