Skip to content

Commit

Permalink
Migrate github actions to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian-B-Moreira committed Nov 18, 2024
1 parent 9a45151 commit 2c8e711
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
needs: [package, smoke-tests]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Release to the public PyPI repository
uses: ansys/actions/release-pypi-public@v8
Expand All @@ -164,6 +166,7 @@ jobs:
uses: ansys/actions/release-github@v8
with:
library-name: ${{ env.LIBRARY_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}

upload_docs_dev:
name: "Deploy development documentation"
Expand All @@ -176,6 +179,8 @@ jobs:
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

upload_docs_release:
name: "Deploy stable documentation"
Expand All @@ -189,3 +194,5 @@ jobs:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
python-version: ${{ env.MAIN_PYTHON_VERSION }}
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
3 changes: 2 additions & 1 deletion src/ansys/rocky/core/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
import requests
except ImportError:
raise ImportError(
"requests library is required to download examples data. Please install it with `pip install requests`"
"requests library is required to download examples data. "
"Please install it with 'pip install requests'"
)

logger = logging.getLogger("pyrocky.networking")
Expand Down

0 comments on commit 2c8e711

Please sign in to comment.