Sha256: eecf33c4b435cddb3711c1de67b50db8fc41841ca06174191175709f65164bb8

Contents?: true

Size: 1.09 KB

Versions: 12

Compression:

Stored size: 1.09 KB

Contents

name: Test & deploy documentation

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']

    steps:
    - uses: actions/checkout@v3
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
        bundler-cache: true
    - name: Run tests
      run: bundle exec rake

  deploy:
    runs-on: ubuntu-latest
    needs: test
    name: Update gh-pages to docs
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 18
      - name: Install required npm dependencies
        run: npm install -g markdown-to-html
      - name: Create docs
        run: mkdir docs
      - name: Generate docs
        run: github-markdown README.md -s https://cdn.simplecss.org/simple-v1.css > docs/index.html
      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
          publish_dir: ./docs

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
synvert-1.10.4 .github/workflows/main.yml
synvert-1.10.3 .github/workflows/main.yml
synvert-1.10.2 .github/workflows/main.yml
synvert-1.10.1 .github/workflows/main.yml
synvert-1.10.0 .github/workflows/main.yml
synvert-1.9.0 .github/workflows/main.yml
synvert-1.8.0 .github/workflows/main.yml
synvert-1.7.0 .github/workflows/main.yml
synvert-1.6.4 .github/workflows/main.yml
synvert-1.6.3 .github/workflows/main.yml
synvert-1.6.2 .github/workflows/main.yml
synvert-1.6.1 .github/workflows/main.yml