Skip to content

Merge pull request #4 from rubocop/chore2 #5

Merge pull request #4 from rubocop/chore2

Merge pull request #4 from rubocop/chore2 #5

Workflow file for this run

name: Deploy documentation to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'rubocop/capybara-style-guide' && !startsWith(github.event_name, 'pull') }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: AsciiDoc to HTML
run: bundle exec asciidoctor -a toc="left" -a toclevels=2 README.adoc -o _site/index.html
- uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4