From 958d3a704a7c6c9c362d38888964af661e8d4274 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 12 Jun 2020 09:48:38 +0100 Subject: [PATCH] Remove workflows/apidoc Replaced with scheduled regeneration job in https://github.com/Homebrew/rubydoc.brew.sh/pull/97. --- .github/workflows/apidoc.yml | 43 ------------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 .github/workflows/apidoc.yml diff --git a/.github/workflows/apidoc.yml b/.github/workflows/apidoc.yml deleted file mode 100644 index 4ed55573ff..0000000000 --- a/.github/workflows/apidoc.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Generate rubydoc.brew.sh -on: - push: - branches: master -jobs: - apidoc: - if: github.repository == 'Homebrew/brew' - runs-on: ubuntu-latest - steps: - - uses: Homebrew/actions/git-ssh@master - with: - git_user: BrewTestBot - git_email: homebrew-test-bot@lists.sfconservancy.org - key: ${{ secrets.RUBYDOC_DEPLOY_KEY }} - - - name: Set up Ruby - uses: actions/setup-ruby@v1 - with: - version: '>=2.3' - - - name: Build and push API docs - run: | - # clone rubydoc.brew.sh with SSH so we can push back - git clone git@github.com:Homebrew/rubydoc.brew.sh - cd rubydoc.brew.sh - - # clone latest Homebrew/brew - git clone --depth=1 https://github.com/Homebrew/brew - - # run rake to build documentation - gem install bundler - bundle install --jobs 4 --retry 3 - bundle exec rake - - # commit and push generated files - git add docs - - if ! git diff --exit-code HEAD -- docs; then - git commit -m 'docs: update from Homebrew/brew push' docs - git fetch - git rebase origin/master - git push - fi