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 GitHub release #276

Merged
merged 8 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from 7 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
27 changes: 21 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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need to explicitely zip artifacts, if you mark a folder for upload then it should be zipped by default

Copy link
Contributor Author

@ludovicsteinbach ludovicsteinbach Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't downloading it unzip it then?

Edit: I think I misunderstood you. Do you mean the artifact should be zipped already or when using the release action pointing it at a folder should zip it?

uses: vimtor/action-zip@v1.1
with:
files: dist/documentation-html/
dest: dist/documentation-html.zip

- name: "Deploy stable documentation"
uses: pyansys/actions/doc-deploy-stable@v4
Expand All @@ -91,8 +103,11 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably these three additions will be removed before merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed

tag_name: v1.1.3b0
draft: true
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 <pyansys.maintainers@ansys.com>"]
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