Skip to content

Create Documentation Page #4

Create Documentation Page

Create Documentation Page #4

name: Create Documentation Page
on:
workflow_call:
workflow_dispatch:
jobs:
document:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Instalar dependências
run: bundle install
- name: Gerar documentação
run: |
rake doc:generate
mkdir -p docs
mv -f doc/* docs/
- name: Deploy para GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs