Minor edits to README.adoc #13
This file contains hidden or 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: Pages | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| bundler-cache: false | |
| - name: Generate prebuild artifacts | |
| run: | | |
| gem install bundler | |
| bundle install | |
| bundle exec rake prebuild | |
| - name: Install dependencies | |
| run: bundle install --jobs 4 | |
| - name: Build docs | |
| run: bundle exec rake docs | |
| - name: Add .nojekyll to output (prevent Pages from reprocessing) | |
| run: | | |
| touch build/docs/_site/.nojekyll | |
| - name: Upload site artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: build/docs/_site | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deploy.outputs.page_url }} | |
| steps: | |
| - id: deploy | |
| name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v4 |