Skip to content

Commit

Permalink
Fix GitHub release (#276)
Browse files Browse the repository at this point in the history
* Fix job dependency

* Disable conditions and unwanted release steps

* DL artifacts and add to rlelease

* Fix paths

* Revert "Disable conditions and unwanted release steps"

This reverts commit 3afd2dc.

* Fix condition for dev docs deploy

* Update documentation path

* Remove extra args in gh release
  • Loading branch information
ludovicsteinbach authored Mar 15, 2023
1 parent 1c25436 commit 5f433f1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
name: "Deploy development documentation"
runs-on: ubuntu-latest
needs: [ integration_checks ]
if: github.event_name == 'push'
if: github.event_name == 'push' && !contains(github.ref, 'refs/tags')
steps:
- uses: pyansys/actions/doc-deploy-dev@v4
with:
Expand All @@ -53,7 +53,7 @@ jobs:

Release:
if: contains(github.ref, 'refs/tags') && github.event_name == 'push'
needs: doc-deploy-dev
needs: integration_checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -66,11 +66,23 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: ansys-grantami-bomanalytics-wheel
path: ~/dist
path: dist

- uses: actions/download-artifact@v3
with:
name: Documentation-pdf
path: dist

- uses: actions/download-artifact@v3
with:
name: Documentation-html
path: dist/documentation-html/

- name: "Compressing HTML documentation"
uses: vimtor/[email protected]
with:
files: dist/documentation-html/
dest: dist/documentation-html.zip

- name: "Deploy stable documentation"
uses: pyansys/actions/doc-deploy-stable@v4
Expand All @@ -93,6 +105,6 @@ jobs:
with:
generate_release_notes: true
files: |
~/**/*.whl
./**/*.zip
./**/*.pdf
dist/*.whl
dist/documentation-html.zip
dist/*.pdf
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT"
authors = ["ANSYS, Inc."]
maintainers = ["PyAnsys Maintainers <[email protected]>"]
repository = "https://github.com/pyansys/grantami-bomanalytics"
documentation = "https://grantami.docs.pyansys.com"
documentation = "https://bomanalytics.grantami.docs.pyansys.com"
readme = "README.rst"
keywords = [
"Ansys",
Expand Down

0 comments on commit 5f433f1

Please sign in to comment.