Skip to content
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
5 changes: 4 additions & 1 deletion .ci/pull_fluent_image.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os

import docker

_IMAGE_NAME = "ghcr.io/pyansys/pyfluent:latest"
_IMAGE_TAG = os.getenv("FLUENT_IMAGE_TAG", "latest")
_IMAGE_NAME = f"ghcr.io/pyansys/pyfluent:{_IMAGE_TAG}"


def _is_newer_version_available(client: docker.DockerClient):
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
docs:
name: Documentation
runs-on: self-hosted
strategy:
matrix:
image-tag: [latest]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -102,6 +105,8 @@ jobs:

- name: Pull Fluent docker image
run: make docker-pull
env:
FLUENT_IMAGE_TAG: ${{ matrix.image-tag }}

- name: Retrieve pyfluent-visualization version
run: |
Expand All @@ -113,26 +118,27 @@ jobs:
uses: actions/cache@v3
with:
path: doc/source/examples
key: Examples-v${{ env.RESET_EXAMPLES_CACHE }}-${{ steps.version.outputs.PYFLUENT_VISUALIZATION_VERSION }}-${{ hashFiles('examples/**') }}-${{ github.sha }}
key: Examples-v${{ env.RESET_EXAMPLES_CACHE }}-${{ steps.version.outputs.PYFLUENT_VISUALIZATION_VERSION }}-${{ matrix.image-tag }}-${{ hashFiles('examples/**') }}-${{ github.sha }}
restore-keys: |
Examples-v${{ env.RESET_EXAMPLES_CACHE }}-${{ steps.version.outputs.PYFLUENT_VISUALIZATION_VERSION }}-${{ hashFiles('examples/**') }}
Examples-v${{ env.RESET_EXAMPLES_CACHE }}-${{ steps.version.outputs.PYFLUENT_VISUALIZATION_VERSION }}-${{ matrix.image-tag }}-${{ hashFiles('examples/**') }}

- name: Generate the documentation
run: make build-doc
env:
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
PYFLUENT_START_INSTANCE: 0
DOCS_CNAME: fluentvisualization.docs.pyansys.com
FLUENT_IMAGE_TAG: ${{ matrix.image-tag }}

- name: Upload HTML Documentation
uses: actions/upload-artifact@v3
with:
name: HTML-Documentation
name: HTML-Documentation-tag-${{ matrix.image-tag }}
path: doc/_build/html
retention-days: 7

- name: Deploy
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
if: github.event_name == 'push' && contains(github.ref, 'refs/tags') && ${{ matrix.image-tag == 'latest'}}
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
repository-name: pyansys/pyfluent-visualization-docs
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/nightly-doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
nightly_docs_build:
runs-on: ubuntu-20.04
strategy:
matrix:
image-tag: [latest]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -42,15 +45,19 @@ jobs:

- name: Pull Fluent docker image
run: make docker-pull
env:
FLUENT_IMAGE_TAG: ${{ matrix.image-tag }}

- name: Generate the documentation
run: make build-doc
env:
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
PYFLUENT_START_INSTANCE: 0
DOCS_CNAME: dev.fluentvisualization.docs.pyansys.com
FLUENT_IMAGE_TAG: ${{ matrix.image-tag }}

- name: Deploy
if: ${{ matrix.image-tag == 'latest'}}
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
repository-name: pyansys/pyfluent-visualization-dev-docs
Expand Down