Skip to content

Commit

Permalink
T693362: Deploy doc to pyedb-docs (#77)
Browse files Browse the repository at this point in the history
* T693362: Deploy doc to pyedb-docs

* T693362: Fix quotes
  • Loading branch information
hiro727 authored Aug 16, 2022
1 parent c15e9c5 commit a25bdb5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,35 @@ jobs:
- name: Generate the documentation with tox
run: tox -e doc

- name: Zip documentation
run: |
cd .tox/doc_out
zip -r pyedb_documentation.zip *
- name: Upload HTML Documentation
uses: actions/upload-artifact@v2
with:
name: HTML-Documentation
path: .tox/doc_out/pyedb_documentation.zip
retention-days: 7

- name: Get Bot Application Token
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v1
with:
application_id: ${{ secrets.BOT_APPLICATION_ID }}
application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }}

- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
uses: JamesIves/[email protected]
with:
repository-name: pyansys/pyedb-dev-docs
token: ${{ steps.get_workflow_token.outputs.token }}
branch: gh-pages
folder: .tox/doc_out
clean: true

build:
name: Build library
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Pyedb

Ansys Electronics Database Python Client

.. image:: https://github.com/pyansys/pyedb/actions/workflows/ci_cd.yml/badge.svg?branch=develop

How to install
--------------
Expand Down

0 comments on commit a25bdb5

Please sign in to comment.