Skip to content

Commit 85d5bbc

Browse files
maint: Add documentation deploy
1 parent 98189d2 commit 85d5bbc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci_cd.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
env:
1111
MAIN_PYTHON_VERSION: '3.12'
12+
DOCUMENTATION_CNAME: allie-flowkit-python.docs.pyansys.com
1213

1314
concurrency:
1415
group: ${{ github.workflow }}-${{ github.ref }}
@@ -69,6 +70,19 @@ jobs:
6970
with:
7071
add-pdf-html-docs-as-assets: true
7172

73+
upload_dev_docs:
74+
name: Upload dev documentation
75+
if: github.ref == 'refs/heads/main'
76+
runs-on: ubuntu-latest
77+
needs: [package]
78+
steps:
79+
- name: Deploy the latest documentation
80+
uses: ansys/actions/doc-deploy-dev@v6
81+
with:
82+
cname: ${{ env.DOCUMENTATION_CNAME }}
83+
token: ${{ secrets.GITHUB_TOKEN }}
84+
85+
7286
release:
7387
name: "Release project"
7488
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
@@ -83,6 +97,19 @@ jobs:
8397
with:
8498
generate_release_notes: true
8599

100+
upload_docs_release:
101+
name: Upload release documentation
102+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
103+
runs-on: ubuntu-latest
104+
needs: [release]
105+
steps:
106+
- name: Deploy the stable documentation
107+
uses: ansys/actions/doc-deploy-stable@v6
108+
with:
109+
cname: ${{ env.DOCUMENTATION_CNAME }}
110+
token: ${{ secrets.GITHUB_TOKEN }}
111+
112+
86113
release-docker:
87114
name : Generate Docker release
88115
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)