Skip to content

Commit e33921d

Browse files
committed
REFACTOR: Use ansys action to deploy
1 parent 7f43ae2 commit e33921d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/ci_cd.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ on:
1212
- cron: "0 3 * * *"
1313

1414
env:
15-
MAIN_PYTHON_VERSION: '3.10'
16-
PACKAGE_NAME: 'pyaedt-examples'
1715
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
16+
DOCUMENTATION_CNAME: 'examples.aedt.docs.pyansys.com'
17+
MAIN_PYTHON_VERSION: '3.10'
1818
ON_CI: True
19+
PACKAGE_NAME: 'pyaedt-examples'
1920
PYAEDT_NON_GRAPHICAL: '1'
2021
PYAEDT_DOC_GENERATION: '1'
2122

@@ -95,10 +96,8 @@ jobs:
9596

9697
- name: Deploy
9798
if: contains(github.ref, 'refs/heads/main')
98-
uses: JamesIves/github-pages-deploy-action@v4.6.3
99+
uses: ansys/actions/doc-deploy-dev@v4
99100
with:
101+
cname: ${{ env.DOCUMENTATION_CNAME }}
100102
token: ${{ secrets.GITHUB_TOKEN }}
101-
branch: gh-pages
102-
folder: doc/_build/html
103-
clean: true
104-
single-commit: true
103+
doc-artifact-name: 'documentation-html'

0 commit comments

Comments
 (0)