-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T693362: Deploy doc to pyedb-docs (#77)
* T693362: Deploy doc to pyedb-docs * T693362: Fix quotes
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters