Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc release #459

Merged
merged 3 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,5 @@ jobs:
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
doc-artifact-name: HTML-doc-ansys-dpf-post
doc-artifact-name: HTML-doc-ansys-dpf-post.zip
decompress-artifact: true
5 changes: 0 additions & 5 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,6 @@ jobs:
needs: [style, tests, retro, examples, docs]
runs-on: ubuntu-latest
steps:
- name: "Set up Python"
uses: actions/[email protected]
with:
python-version: 3.9

- name: "Download artifacts"
uses: actions/download-artifact@v3

Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,18 @@ jobs:
path: docs/*.txt
if: always()

- name: "Zip HTML Documentation"
uses: vimtor/[email protected]
with:
files: docs/build/html/*
dest: HTML-doc-${{env.PACKAGE_NAME}}.zip
if: always()

- name: "Upload HTML Documentation"
uses: actions/upload-artifact@v3
with:
name: HTML-doc-${{env.PACKAGE_NAME}}
path: |
docs/build/html/
name: HTML-doc-${{env.PACKAGE_NAME}}.zip
path: HTML-doc-${{env.PACKAGE_NAME}}.zip
if: always()

- name: "Find PDF Documentation"
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,32 @@ jobs:

upload_docs_release:
name: "Upload release documentation"
if: contains(github.ref, 'refs/tags')
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [Publish_to_PyPI]
steps:

- name: "Download Release Asset - HTML"
uses: dsaltares/[email protected]
with:
file: HTML-doc-ansys-dpf-post
file: HTML-doc-ansys-dpf-post.zip
token: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy the stable documentation
- name: "List downloaded assets"
shell: bash
run: |
ls

- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
name: HTML-doc-ansys-dpf-post.zip
path: HTML-doc-ansys-dpf-post.zip

- name: "Deploy the stable documentation"
uses: ansys/actions/doc-deploy-stable@v4
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
doc-artifact-name: HTML-doc-ansys-dpf-post
doc-artifact-name: HTML-doc-ansys-dpf-post.zip
decompress-artifact: true