Create Documentation Page #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |