Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Merge pull request #301 from Support-pl/dependabot/github_actions/rub… #485

Merge pull request #301 from Support-pl/dependabot/github_actions/rub…

Merge pull request #301 from Support-pl/dependabot/github_actions/rub… #485

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Generate and Deploy Docs
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
generate-doc:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1.149.0
with:
ruby-version: 2.5
- name: Install YARDoc
run: gem install yard yard-sinatra
- name: Generating Docs
run: yard --yardopts docs/.yardopts --plugin yard-sinatra
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: 'doc'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2