Skip to content

Commit

Permalink
Merge pull request #56 from apigee/srinandan-patch-3
Browse files Browse the repository at this point in the history
auto generate docs
  • Loading branch information
srinandan authored Aug 29, 2022
2 parents 5b1f42e + db14731 commit 7cf3add
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generate documentation for apigeecli
name: apigeecli Github Pages Pipeline

on:
push:
branches: [ "master" ]

jobs:
publish-gh-pages:
name: DevRel Workflow Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
ref: gh-pages
- name: Push GH Pages
run: |
go run docs/docs.go
git config --global user.name "apigeecli Publish Action"
git config --global user.email "[email protected]"
git add --all
git commit -m "Update GH Pages - $GITHUB_SHA" || echo "No Changes in docs"
git push

0 comments on commit 7cf3add

Please sign in to comment.