This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
Retire from maintenance #16
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: Deploy API docs to GitHub Pages | |
on: | |
push: | |
branches: ['main'] | |
paths: | |
- '.github/workflows/pages.yml' | |
- '.yardopts' | |
- 'lib/**' | |
- '**.gemspec' | |
- 'Gemfile' | |
- '**.md' | |
- '**.txt' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow one concurrent deployment | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: true | |
jobs: | |
deploy_yard: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-24.04 | |
name: Build and deploy YARD | |
steps: | |
- uses: kachick/deploy-yard-to-pages@v1 | |
id: deployment |