Sha256: 6c659bf82ca83331a846fa74da976ca4c7604997f924ab4857b3e1a678fc893e

Contents?: true

Size: 1.18 KB

Versions: 3

Compression:

Stored size: 1.18 KB

Contents

name: Deploy Yard Docs

on:
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: "3.3"
      - name: Install Yard gem
        run: gem install yard
      - name: Build Yard Docs
        run: yardoc lib/cm_admin/models/dsl_method.rb
      - name: Upload artifact
        uses: actions/upload-pages-artifact@v1
        with:
          name: github-pages # name of the artifact
          path: ./doc
          if-no-files-found: error

  deploy:
    # Add a dependency to the build job
    needs: build

    # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
    permissions:
      pages: write # to deploy to Pages
      id-token: write # to verify the deployment originates from an appropriate source

    # Deploy to the github-pages environment
    environment:
      name: github-pages # artifact name
      url: ${{ steps.deployment.outputs.page_url }}

    # Specify runner + deployment step
    runs-on: ubuntu-latest
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v2

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cm-admin-1.5.42 .github/workflows/deploy-yard-docs.yml
cm-admin-1.5.41 .github/workflows/deploy-yard-docs.yml
cm-admin-1.5.40 .github/workflows/deploy-yard-docs.yml