Sha256: 966433ec79accbe6b84c950ca6f0a41648b4b459ea304b60b61c2c5b743c539e

Contents?: true

Size: 731 Bytes

Versions: 5

Compression:

Stored size: 731 Bytes

Contents

name: Publish docs

on:
  push:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest
    name: Publish documentation website
    steps:
      - uses: actions/checkout@v3

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.1.1
          bundler-cache: true

      - name: Configure git
        run: |
          git config user.name github-actions
          git config user.email github-actions@github.com

      - name: Generate documentation
        run: bundle exec rake yard

      - name: Commit to gh-pages
        run: |
          git add docs
          git commit -m "Publish website $(git log --format=format:%h -1)"
          git push --force origin main:gh-pages

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-lsp-0.2.1 .github/workflows/publish_docs.yml
ruby-lsp-0.2.0 .github/workflows/publish_docs.yml
ruby-lsp-0.1.0 .github/workflows/publish_docs.yml
ruby-lsp-0.0.4 .github/workflows/publish_docs.yml
ruby-lsp-0.0.3 .github/workflows/publish_docs.yml