Sha256: cf47800a1dc340bb95259ff2d41d3c0dcd9198205abdf17f3e66b7156d50976e

Contents?: true

Size: 1.1 KB

Versions: 4

Compression:

Stored size: 1.1 KB

Contents

name: update docs
on:
  push:
    branches:
      - master

jobs:
  update-docs:
    name: update docs
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7

      - name: Install dependencies
        run: |
          gem uninstall bundler
          gem install bundler -v 2.2.3
          bundle install

      - name: Deploy Configuration
        run: |
          mkdir ~/.ssh
          ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
          echo "${{ secrets.DOCS_DEPLOY_SSH_RSA }}" | base64 -d > ~/.ssh/id_rsa
          chmod 400 ~/.ssh/id_rsa

      - name: Build and Push
        run: |
          git clone git@github.com:YusukeIwaki/puppeteer-ruby-docs.git docs
          rm -rf docs/*
          bundle exec yardoc -o docs
          cp puppeteer-ruby.png docs/
          cd docs/
          git add -A
          git config user.name github
          git config user.email github@example.com
          git commit -m ${{ github.sha }}
          git push origin master

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppeteer-ruby-0.31.0 .github/workflows/docs.yml
puppeteer-ruby-0.30.0 .github/workflows/docs.yml
puppeteer-ruby-0.29.0 .github/workflows/docs.yml
puppeteer-ruby-0.28.1 .github/workflows/docs.yml