Sha256: 4bec8915f346e4f9ff0ff9910877fe1a44ac241526ec8872b091fe053c090aed

Contents?: true

Size: 1.27 KB

Versions: 14

Compression:

Stored size: 1.27 KB

Contents

name: Deploy rdoc to GitHub Pages

on:
  push:
    branches:
      - main

    # Allows you to run this workflow manually from the Actions tab
    workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

# Allow one concurrent deployment
concurrency:
  group: "pages"
  cancel-in-progress: true

jobs:
  # Build job
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup Pages
        uses: actions/configure-pages@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
          ruby-version: '3.1'
      - name: Generate docs
        run: |
          gem install rdoc
          rdoc --main README.md --op _site --exclude={Gemfile,Rakefile,"coverage/*","vendor/*","bin/*","test/*","tmp/*"}
          cp -r doc _site/doc
      - name: Upload artifact
        uses: actions/upload-pages-artifact@v1

  # Deployment job
  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@v1

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
syntax_tree-5.2.0 .github/workflows/gh-pages.yml
syntax_tree-5.1.0 .github/workflows/gh-pages.yml
syntax_tree-5.0.1 .github/workflows/gh-pages.yml
syntax_tree-5.0.0 .github/workflows/gh-pages.yml
syntax_tree-4.3.0 .github/workflows/gh-pages.yml
syntax_tree-4.2.0 .github/workflows/gh-pages.yml
syntax_tree-4.1.0 .github/workflows/gh-pages.yml
syntax_tree-4.0.2 .github/workflows/gh-pages.yml
syntax_tree-4.0.1 .github/workflows/gh-pages.yml
syntax_tree-4.0.0 .github/workflows/gh-pages.yml
syntax_tree-3.6.3 .github/workflows/gh-pages.yml
syntax_tree-3.6.2 .github/workflows/gh-pages.yml
syntax_tree-3.6.1 .github/workflows/gh-pages.yml
syntax_tree-3.6.0 .github/workflows/gh-pages.yml