Sha256: 9ee9ba3b2d6f64f73c3e4c81315cf888b36ea751ded2e5a896cdd8c5ab3c29e1

Contents?: true

Size: 1.5 KB

Versions: 8

Compression:

Stored size: 1.5 KB

Contents

name: Build YARD with main

on:
  workflow_dispatch:
  schedule:
    - cron: "*/8 * * * *"

jobs:
  main:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.0.2
          bundler-cache: true
      - name: Set up git settings
        run: |
          git config --global user.email "action@github.com"
          git config --global user.name "GitHub Action"
      - name: Clone pages
        env:
          SSH_SECRET: ${{ secrets.SSH }}
          GIT_SSH_COMMAND: ssh -i ~/ssh_secret
        run: |
          echo "$SSH_SECRET" > ~/ssh_secret
          chmod 600 ~/ssh_secret
          git clone git@github.com:discorb-lib/discorb-lib.github.io /tmp/pages
      - name: Install dependencies
        run: |
          bundle config --local with 'docs'
          bundle install
          gem update uri
      - name: Generate document
        run: bundle exec rake document
      - name: Push document
        env:
          SSH_SECRET: ${{ secrets.SSH }}
          GIT_SSH_COMMAND: ssh -i ~/ssh_secret
        run: |
          echo "$SSH_SECRET" > ~/ssh_secret
          chmod 600 ~/ssh_secret
          cp -r ./doc/. /tmp/pages
          cd /tmp/pages
          git add -A
          git commit -m "Update: Update document for ${{ github.sha }} by cron"
          git update-ref -d refs/remotes/origin/user
          git push origin main -f
        continue-on-error: true

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
discorb-0.16.0 .github/workflows/build_main.yml
discorb-0.15.1 .github/workflows/build_main.yml
discorb-0.15.0 .github/workflows/build_main.yml
discorb-0.14.0 .github/workflows/build_main.yml
discorb-0.13.4 .github/workflows/build_main.yml
discorb-0.13.3 .github/workflows/build_main.yml
discorb-0.13.2 .github/workflows/build_main.yml
discorb-0.13.1 .github/workflows/build_main.yml