Skip to content

Commit 46c5f01

Browse files
Merge pull request #53 from pyansys/medson/updateCI
Update ci_cd.yml
2 parents 451895c + f9bb213 commit 46c5f01

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/ci_cd.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,24 +93,24 @@ jobs:
9393
path: doc/build/html
9494
retention-days: 7
9595

96-
- name: Deploy stable documentation
97-
uses: pyansys/actions/doc-deploy-stable@v3
98-
# The following commented condition should be uncommented when the release is public to ensure a stable user documentation.
99-
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'dev')
100-
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/main')
101-
with:
102-
doc-artifact-name: 'HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }}'
103-
decompress_artifact: true
104-
cname: ${{ env.DOCUMENTATION_CNAME }}
105-
token: ${{ secrets.GH_TOKEN }}
106-
107-
# - name: Old Deploy
96+
# - name: Deploy stable documentation
97+
# uses: pyansys/actions/doc-deploy-stable@v3
98+
# # The following commented condition should be uncommented when the release is public to ensure a stable user documentation.
99+
# # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'dev')
108100
# if: github.event_name == 'push' && contains(github.ref, 'refs/heads/main')
109-
# uses: JamesIves/[email protected]
110101
# with:
111-
# branch: gh-pages
112-
# folder: doc/build/html
113-
# clean: true
102+
# doc-artifact-name: 'HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }}'
103+
# decompress_artifact: true
104+
# cname: ${{ env.DOCUMENTATION_CNAME }}
105+
# token: ${{ secrets.GH_TOKEN }}
106+
107+
- name: Deploy
108+
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/main')
109+
uses: JamesIves/[email protected]
110+
with:
111+
branch: gh-pages
112+
folder: doc/build/html
113+
clean: true
114114

115115
release:
116116
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)