-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Added new workflow which can deploy the documentation to GitHub…
… Pages new file: .github/workflows/deploy-documentation.yml modified: README.rst modified: pyproject.toml Signed-off-by: qthompso <[email protected]>
- Loading branch information
Showing
3 changed files
with
46 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Deploy Docs to Github Pages | ||
on: | ||
workflow_run: | ||
branches: [main] | ||
workflows: [Test docs] | ||
types: [completed] | ||
concurrency: | ||
group: publish-docs | ||
jobs: | ||
publish-docs: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} && github.ref == | ||
'refs/heads/main' | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Download Artifact | ||
uses: dawidd6/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
workflow_conclusion: success | ||
name: artifact_docs | ||
- name: Unzip Documentation Results | ||
run: | | ||
unzip docs_results.zip | ||
rm -r docs_results/.results_docs/html/.doctrees | ||
- name: Upload To Pages | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: docs_results/.results_docs/html | ||
- name: Deploy To Pages | ||
uses: actions/deploy-pages@v2 | ||
id: deployment |
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
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