12
12
MAIN_PYTHON_VERSION : ' 3.10'
13
13
PACKAGE_NAME : ' ansys_sphinx_theme'
14
14
DOCUMENTATION_CNAME : ' sphinxdocs.ansys.com'
15
- MEILISEARCH_API_KEY : ${{ secrets.MEILISEARCH_API_KEY }}
16
- MEILISEARCH_PUBLIC_API_KEY : ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}
17
15
18
16
concurrency :
19
17
group : ${{ github.workflow }}-${{ github.ref }}
26
24
runs-on : ubuntu-latest
27
25
steps :
28
26
- name : " Run Ansys code style checks"
29
- uses : ansys/actions/code-style@v7
27
+ uses : ansys/actions/code-style@v8
30
28
with :
31
29
python-version : ${{ env.MAIN_PYTHON_VERSION }}
32
30
35
33
runs-on : ubuntu-latest
36
34
steps :
37
35
- name : " Run Ansys documentation style checks"
38
- uses : ansys/actions/doc-style@v7
36
+ uses : ansys/actions/doc-style@v8
39
37
with :
40
38
token : ${{ secrets.GITHUB_TOKEN }}
41
39
47
45
contents : write
48
46
pull-requests : write
49
47
steps :
50
- - uses : ansys/actions/doc-deploy-changelog@v7
48
+ - uses : ansys/actions/doc-deploy-changelog@v8
51
49
with :
52
50
token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
53
51
57
55
needs : doc-style
58
56
steps :
59
57
- name : " Run Ansys documentation building action"
60
- uses : ansys/actions/doc-build@v7
58
+ uses : ansys/actions/doc-build@v8
61
59
with :
62
60
python-version : ${{ env.MAIN_PYTHON_VERSION }}
63
61
add-pdf-html-docs-as-assets : true
71
69
needs : build-library
72
70
steps :
73
71
- name : " Deploy developers documentation"
74
- uses : ansys/actions/doc-deploy-dev@v7
72
+ uses : ansys/actions/doc-deploy-dev@v8
75
73
with :
76
74
cname : ${{ env.DOCUMENTATION_CNAME }}
77
75
token : ${{ secrets.GITHUB_TOKEN }}
83
81
needs : release
84
82
steps :
85
83
- name : " Deploy stable documentation"
86
- uses : ansys/actions/doc-deploy-stable@v7
84
+ uses : ansys/actions/doc-deploy-stable@v8
87
85
with :
88
86
cname : ${{ env.DOCUMENTATION_CNAME }}
89
87
token : ${{ secrets.GITHUB_TOKEN }}
@@ -105,7 +103,7 @@ jobs:
105
103
os : macos-latest
106
104
steps :
107
105
- name : " Build wheelhouse and perform smoke test"
108
- uses : ansys/actions/build-wheelhouse@v7
106
+ uses : ansys/actions/build-wheelhouse@v8
109
107
with :
110
108
library-name : ${{ env.PACKAGE_NAME }}
111
109
operating-system : ${{ matrix.os }}
@@ -117,7 +115,7 @@ jobs:
117
115
needs : [doc-build, smoke-tests]
118
116
steps :
119
117
- name : " Build library source and wheel artifacts"
120
- uses : ansys/actions/build-library@v7
118
+ uses : ansys/actions/build-library@v8
121
119
with :
122
120
library-name : ${{ env.PACKAGE_NAME }}
123
121
@@ -129,65 +127,20 @@ jobs:
129
127
steps :
130
128
131
129
- name : " Release to the private PyPI repository"
132
- uses : ansys/actions/release-pypi-private@v7
130
+ uses : ansys/actions/release-pypi-private@v8
133
131
with :
134
132
library-name : ${{ env.PACKAGE_NAME }}
135
133
twine-username : " __token__"
136
134
twine-token : ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
137
135
138
136
- name : " Release to the public PyPI repository"
139
- uses : ansys/actions/release-pypi-public@v7
137
+ uses : ansys/actions/release-pypi-public@v8
140
138
with :
141
139
library-name : ${{ env.PACKAGE_NAME }}
142
140
twine-username : " __token__"
143
141
twine-token : ${{ secrets.PYPI_TOKEN }}
144
142
145
143
- name : " Release to GitHub"
146
- uses : ansys/actions/release-github@v7
144
+ uses : ansys/actions/release-github@v8
147
145
with :
148
146
library-name : ${{ env.PACKAGE_NAME }}
149
-
150
- doc-index-dev :
151
- name : " Deploy dev index docs"
152
- if : github.ref == 'refs/heads/main'
153
- runs-on : ubuntu-latest
154
- needs : doc-deploy-development
155
- steps :
156
- - name : " Deploy the latest documentation index"
157
- uses : ansys/actions/doc-deploy-index@v7
158
- with :
159
- cname : ${{ env.DOCUMENTATION_CNAME }}/version/dev
160
- index-name : " ansys-sphinx-theme-vdev"
161
- host-url : ${{ vars.MEILISEARCH_HOST_URL }}
162
- api-key : ${{ env.MEILISEARCH_API_KEY }}
163
-
164
- doc-index-stable :
165
- name : " Deploy stable docs index"
166
- if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
167
- runs-on : ubuntu-latest
168
- needs : doc-deploy-stable
169
- steps :
170
- - name : " Install Git and clone project"
171
- uses : actions/checkout@v4
172
-
173
- - name : " get version of library"
174
- shell : bash
175
- run : |
176
- python -m pip install -e .
177
-
178
- - name : Scrape the stable documentation to PyMeilisearch
179
- run : |
180
- VERSION=$(python -c "from ansys_sphinx_theme import __version__; print('.'.join(__version__.split('.')[:2]))")
181
- VERSION_MEILI=$(python -c "from ansys_sphinx_theme import __version__; print('-'.join(__version__.split('.')[:2]))")
182
- echo "Calculated VERSION: $VERSION"
183
- echo "Calculated VERSION_MEILI: $VERSION_MEILI"
184
- echo "VERSION=$VERSION" >> $GITHUB_ENV
185
- echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
186
-
187
- - name : " Deploy the latest documentation index"
188
- uses : ansys/actions/doc-deploy-index@v7
189
- with :
190
- cname : ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
191
- index-name : ansys-sphinx-theme-v${{ env.VERSION_MEILI }}
192
- host-url : ${{ vars.MEILISEARCH_HOST_URL }}
193
- api-key : ${{ env.MEILISEARCH_API_KEY }}
0 commit comments