From 54adf0196fa4074d3a372110a360f3855b9fd0b9 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 9 Jul 2020 11:56:42 -0700 Subject: [PATCH] removes docs generation for now --- .github/actions/docs/entrypoint.sh | 17 ----------------- .github/actions/docs/sami.php | 27 --------------------------- .github/workflows/docs.yml | 28 ---------------------------- 3 files changed, 72 deletions(-) delete mode 100755 .github/actions/docs/entrypoint.sh delete mode 100644 .github/actions/docs/sami.php delete mode 100644 .github/workflows/docs.yml diff --git a/.github/actions/docs/entrypoint.sh b/.github/actions/docs/entrypoint.sh deleted file mode 100755 index 45274e9e8..000000000 --- a/.github/actions/docs/entrypoint.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -l - -apt-get update -apt-get install -y git -git reset --hard HEAD - -php vendor/bin/sami.php update .github/actions/docs/sami.php - -cd ./.docs - -git init -git config user.name "GitHub Actions" -git config user.email "actions@github.com" - -git add . -git commit -m "Updating docs" -git push -q https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/${GITHUB_REPOSITORY} HEAD:gh-pages --force diff --git a/.github/actions/docs/sami.php b/.github/actions/docs/sami.php deleted file mode 100644 index 3aae0bfa7..000000000 --- a/.github/actions/docs/sami.php +++ /dev/null @@ -1,27 +0,0 @@ -files() - ->name('*.php') - ->exclude('vendor') - ->exclude('tests') - ->in($projectRoot); - -$versions = GitVersionCollection::create($projectRoot) - ->addFromTags('v1.*') - ->add('master', 'master branch'); - -return new Sami($iterator, [ - 'title' => 'Google APIs Client Library for PHP API Reference', - 'build_dir' => $projectRoot . '/.docs/%version%', - 'cache_dir' => $projectRoot . '/.cache/%version%', - 'remote_repository' => new GitHubRemoteRepository('googleapis/google-api-php-client', $projectRoot), - 'versions' => $versions -]); diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index f9a52f8dc..000000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Generate Documentation -on: - push: - branches: - - master - tags: - - "*" - -jobs: - docs: - name: "Generate Project Documentation" - runs-on: ubuntu-16.04 - steps: - - name: Checkout - uses: actions/checkout@v2 - - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - name: Install Dependencies - uses: nick-invision/retry@v1 - with: - timeout_minutes: 10 - max_attempts: 3 - command: composer config repositories.sami vcs https://${{ secrets.GITHUB_TOKEN }}@github.com/jdpedrie/sami.git && composer require sami/sami:v4.2 && git reset --hard HEAD - - name: Generate and Push Documentation - uses: docker://php:7.3-cli - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - with: - entrypoint: ./.github/actions/docs/entrypoint.sh